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
This commit is contained in:
Vikram S. Adve 2002-07-10 21:51:46 +00:00
parent 69cacd4710
commit 975f6d4f44
2 changed files with 6 additions and 6 deletions

View File

@ -46,9 +46,9 @@ public:
// Accessor methods // Accessor methods
const Value* getArgVal() { return argVal; } const Value* getArgVal() { return argVal; }
const Value* getArgCopy() { return argValCopy; } const Value* getArgCopy() { return argValCopy; }
bool usesIntArgReg() { return (bool) passingMethod & IntArgReg; } bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);}
bool usesFPArgReg() { return (bool) passingMethod & FPArgReg; } bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); }
bool usesStackSlot() { return (bool) passingMethod & StackSlot; } bool usesStackSlot() { return (bool) (passingMethod & StackSlot);}
// Modifier methods // Modifier methods
void replaceArgVal(const Value* newVal) { argVal = newVal; } void replaceArgVal(const Value* newVal) { argVal = newVal; }

View File

@ -46,9 +46,9 @@ public:
// Accessor methods // Accessor methods
const Value* getArgVal() { return argVal; } const Value* getArgVal() { return argVal; }
const Value* getArgCopy() { return argValCopy; } const Value* getArgCopy() { return argValCopy; }
bool usesIntArgReg() { return (bool) passingMethod & IntArgReg; } bool usesIntArgReg() { return (bool) (passingMethod & IntArgReg);}
bool usesFPArgReg() { return (bool) passingMethod & FPArgReg; } bool usesFPArgReg() { return (bool) (passingMethod & FPArgReg); }
bool usesStackSlot() { return (bool) passingMethod & StackSlot; } bool usesStackSlot() { return (bool) (passingMethod & StackSlot);}
// Modifier methods // Modifier methods
void replaceArgVal(const Value* newVal) { argVal = newVal; } void replaceArgVal(const Value* newVal) { argVal = newVal; }