Bug fix: cast (bool) has higher precedence than %... who knew!
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Jul 2002 21:51:46 +0000 (21:51 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Jul 2002 21:51:46 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2864 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstrAnnot.h
lib/Target/SparcV9/MachineInstrAnnot.h

index b16408f9a36664c891e86468579a11b8c9396eb0..fa80c7297ffba7b0a5db87944b958602e432c536 100644 (file)
@@ -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; }
index b16408f9a36664c891e86468579a11b8c9396eb0..fa80c7297ffba7b0a5db87944b958602e432c536 100644 (file)
@@ -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; }