Fixing a type width warning with MSVC.
authorAaron Ballman <aaron@aaronballman.com>
Sun, 9 Sep 2012 20:34:25 +0000 (20:34 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 9 Sep 2012 20:34:25 +0000 (20:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163481 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/TableGen/Record.h

index c7baaeb9d90ecaf74bb2ca5fad95c31156e1486a..adb1a77ae42dc9bfbff4c6a7ec2718629521e604 100644 (file)
@@ -689,7 +689,7 @@ public:
   }
 
   virtual Init *getBit(unsigned Bit) const {
-    return BitInit::get((Value & (1 << Bit)) != 0);
+    return BitInit::get((Value & (1ULL << Bit)) != 0);
   }
 };