From 236bcf1fcd6164d624956c0858593c1a780b9a0b Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sun, 9 Sep 2012 20:34:25 +0000 Subject: [PATCH] Fixing a type width warning with MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163481 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/TableGen/Record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index c7baaeb9d90..adb1a77ae42 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -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); } };