From 8967349e8564816bcc427e7a39b02e379ba6cc51 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 10 Jul 2002 21:51:46 +0000 Subject: [PATCH] Bug fix: cast (bool) has higher precedence than %... who knew! llvm-svn: 2864 --- include/llvm/CodeGen/MachineInstrAnnot.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }