[llvm-commits] [llvm] r163481 - /llvm/trunk/include/llvm/TableGen/Record.h
Aaron Ballman
aaron at aaronballman.com
Sun Sep 9 13:34:25 PDT 2012
Author: aaronballman
Date: Sun Sep 9 15:34:25 2012
New Revision: 163481
URL: http://llvm.org/viewvc/llvm-project?rev=163481&view=rev
Log:
Fixing a type width warning with MSVC.
Modified:
llvm/trunk/include/llvm/TableGen/Record.h
Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=163481&r1=163480&r2=163481&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Sun Sep 9 15:34:25 2012
@@ -689,7 +689,7 @@
}
virtual Init *getBit(unsigned Bit) const {
- return BitInit::get((Value & (1 << Bit)) != 0);
+ return BitInit::get((Value & (1ULL << Bit)) != 0);
}
};
More information about the llvm-commits
mailing list