diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-10 21:51:46 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-10 21:51:46 +0000 |
| commit | 72623d57e4063452426e70c8a771a8f7f8d12b28 (patch) | |
| tree | 0c352402d9db0ad5bdb9902100b3818736909260 | |
| parent | 546b6ac3e37c330ea2fe4b8655357beee39aa561 (diff) | |
| download | bcm5719-llvm-72623d57e4063452426e70c8a771a8f7f8d12b28.tar.gz bcm5719-llvm-72623d57e4063452426e70c8a771a8f7f8d12b28.zip | |
Bug fix: cast (bool) has higher precedence than %... who knew!
llvm-svn: 2864
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstrAnnot.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstrAnnot.h b/llvm/include/llvm/CodeGen/MachineInstrAnnot.h index b16408f9a36..fa80c7297ff 100644 --- a/llvm/include/llvm/CodeGen/MachineInstrAnnot.h +++ b/llvm/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; } |

