Skip to content

Commit a0e6acc

Browse files
committed
IRGen: avoid a truncation of the key data
This was flagged by MSVC as a truncation due to the cast from `unsigned` to `bool`. Correct the return type to match.
1 parent afe116b commit a0e6acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/Callee.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace irgen {
121121
}
122122
llvm_unreachable("unhandled case");
123123
}
124-
bool getCorrespondingDataKey() const {
124+
unsigned getCorrespondingDataKey() const {
125125
assert(hasCodeKey());
126126
switch (getKey()) {
127127
case (unsigned)PointerAuthSchema::ARM8_3Key::ASIA:

0 commit comments

Comments
 (0)