[cfe-commits] r141467 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Oct 7 18:03:48 PDT 2011
Author: efriedma
Date: Fri Oct 7 20:03:47 2011
New Revision: 141467
URL: http://llvm.org/viewvc/llvm-project?rev=141467&view=rev
Log:
Fix warning on MSVC. Patch by Aaron Ballman.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=141467&r1=141466&r2=141467&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Fri Oct 7 20:03:47 2011
@@ -1721,7 +1721,7 @@
if (bitCount < 64) {
uint64_t val = 1;
for (int i=0 ; i<bitCount ; ++i) {
- if (bits[i]) val |= 1<<(i+1);
+ if (bits[i]) val |= 1ULL<<(i+1);
}
return llvm::ConstantInt::get(Int64Ty, val);
}
More information about the cfe-commits
mailing list