From: Vikram S. Adve Date: Wed, 10 Jul 2002 21:51:46 +0000 (+0000) Subject: Bug fix: cast (bool) has higher precedence than %... who knew! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=975f6d4f4477a68f9b322843a1bf2ebc24214b3a;p=oota-llvm.git Bug fix: cast (bool) has higher precedence than %... who knew! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2864 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h index b16408f9a36..fa80c7297ff 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 b16408f9a36..fa80c7297ff 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; }