[llvm-commits] [dragonegg] r114802 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Sun Sep 26 01:01:21 PDT 2010
Author: baldrick
Date: Sun Sep 26 03:01:21 2010
New Revision: 114802
URL: http://llvm.org/viewvc/llvm-project?rev=114802&view=rev
Log:
Make this file -pedantic clean ('use of C99 long long integer constant').
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=114802&r1=114801&r2=114802&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Sun Sep 26 03:01:21 2010
@@ -7700,7 +7700,8 @@
// Next, if this doesn't touch the top bit, mask out any bits that shouldn't
// be set in the result.
- uint64_t MaskVal = ((1ULL << BitsInVal)-1) << FirstBitInVal;
+ uint64_t MaskVal = 1;
+ MaskVal = ((MaskVal << BitsInVal)-1) << FirstBitInVal;
Constant *Mask = ConstantInt::get(Type::getInt64Ty(Context), MaskVal);
Mask = Builder.getFolder().CreateTruncOrBitCast(Mask, ValTy);
More information about the llvm-commits
mailing list