diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-10-08 01:03:47 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-10-08 01:03:47 +0000 |
commit | e3c944a9f620dacb0c29d16e7d61c8e7fca10963 (patch) | |
tree | a463ded8d7357defa8aaefcff936a4d4545566af | |
parent | 8ed7bec1b1cee54587e6883fb7c4dbb7c7a13def (diff) |
Fix warning on MSVC. Patch by Aaron Ballman.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141467 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index a95e8e6097..59a1d753ad 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -1721,7 +1721,7 @@ llvm::Constant *CGObjCGNU::MakeBitField(llvm::SmallVectorImpl<bool> &bits) { 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); } |