Skip to content

Commit 505c4da

Browse files
committed
isImmPCRel/isImmSigned - both functions should return bool not unsigned. NFCI.
1 parent 43fe9af commit 505c4da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/MCTargetDesc/X86BaseInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ namespace X86II {
675675

676676
/// isImmPCRel - Return true if the immediate of the specified instruction's
677677
/// TSFlags indicates that it is pc relative.
678-
inline unsigned isImmPCRel(uint64_t TSFlags) {
678+
inline bool isImmPCRel(uint64_t TSFlags) {
679679
switch (TSFlags & X86II::ImmMask) {
680680
default: llvm_unreachable("Unknown immediate size");
681681
case X86II::Imm8PCRel:
@@ -694,7 +694,7 @@ namespace X86II {
694694

695695
/// isImmSigned - Return true if the immediate of the specified instruction's
696696
/// TSFlags indicates that it is signed.
697-
inline unsigned isImmSigned(uint64_t TSFlags) {
697+
inline bool isImmSigned(uint64_t TSFlags) {
698698
switch (TSFlags & X86II::ImmMask) {
699699
default: llvm_unreachable("Unknown immediate signedness");
700700
case X86II::Imm32S:

0 commit comments

Comments
 (0)