[llvm-commits] CVS: llvm/utils/TableGen/Record.cpp

Jeff Cohen jeffc at jolt-lang.org
Fri Feb 17 19:20:47 PST 2006



Changes in directory llvm/utils/TableGen:

Record.cpp updated: 1.50 -> 1.51
---
Log message:

Fix bugs identified by VC++.

---
Diffs of the changes:  (+2 -2)

 Record.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/utils/TableGen/Record.cpp
diff -u llvm/utils/TableGen/Record.cpp:1.50 llvm/utils/TableGen/Record.cpp:1.51
--- llvm/utils/TableGen/Record.cpp:1.50	Tue Jan 31 00:02:35 2006
+++ llvm/utils/TableGen/Record.cpp	Fri Feb 17 21:20:33 2006
@@ -69,13 +69,13 @@
     if (Value & ~((1LL << Size)-1))
       return 0;
   } else {
-    if ((Value >> Size) != -1 || ((Value & (1 << (Size-1))) == 0))
+    if ((Value >> Size) != -1 || ((Value & (1LL << (Size-1))) == 0))
       return 0;
   }
 
   BitsInit *Ret = new BitsInit(Size);
   for (unsigned i = 0; i != Size; ++i)
-    Ret->setBit(i, new BitInit(Value & (1 << i)));
+    Ret->setBit(i, new BitInit(Value & (1LL << i)));
 
   return Ret;
 }






More information about the llvm-commits mailing list