diff options
-rw-r--r-- | include/llvm/CodeGen/MachineInstrAnnot.h | 6 | ||||
-rw-r--r-- | lib/Target/SparcV9/MachineInstrAnnot.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h index b16408f..fa80c72 100644 --- a/include/llvm/CodeGen/MachineInstrAnnot.h +++ b/include/llvm/CodeGen/MachineInstrAnnot.h @@ -46,9 +46,9 @@ public: // Accessor methods const Value* getArgVal() { return argVal; } const Value* getArgCopy() { return argValCopy; } - bool usesIntArgReg() { return (bool) passingMethod & IntArgReg; } - bool usesFPArgReg() { return (bool) passingMethod & FPArgReg; } - bool usesStackSlot() { return (bool) passingMethod & StackSlot; } + bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);} + bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); } + bool usesStackSlot() { return (bool) (passingMethod & StackSlot);} // Modifier methods void replaceArgVal(const Value* newVal) { argVal = newVal; } diff --git a/lib/Target/SparcV9/MachineInstrAnnot.h b/lib/Target/SparcV9/MachineInstrAnnot.h index b16408f..fa80c72 100644 --- a/lib/Target/SparcV9/MachineInstrAnnot.h +++ b/lib/Target/SparcV9/MachineInstrAnnot.h @@ -46,9 +46,9 @@ public: // Accessor methods const Value* getArgVal() { return argVal; } const Value* getArgCopy() { return argValCopy; } - bool usesIntArgReg() { return (bool) passingMethod & IntArgReg; } - bool usesFPArgReg() { return (bool) passingMethod & FPArgReg; } - bool usesStackSlot() { return (bool) passingMethod & StackSlot; } + bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);} + bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); } + bool usesStackSlot() { return (bool) (passingMethod & StackSlot);} // Modifier methods void replaceArgVal(const Value* newVal) { argVal = newVal; } |