From: Aaron Ballman Date: Sun, 9 Sep 2012 20:34:25 +0000 (+0000) Subject: Fixing a type width warning with MSVC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=236bcf1fcd6164d624956c0858593c1a780b9a0b;p=oota-llvm.git Fixing a type width warning with MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163481 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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); } };