[cfe-commits] r170461 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Eli Bendersky
eliben at google.com
Tue Dec 18 14:22:16 PST 2012
Author: eliben
Date: Tue Dec 18 16:22:16 2012
New Revision: 170461
URL: http://llvm.org/viewvc/llvm-project?rev=170461&view=rev
Log:
Similar to 170440 - fix build warning with gcc
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=170461&r1=170460&r2=170461&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Tue Dec 18 16:22:16 2012
@@ -1200,7 +1200,7 @@
} else {
if (Info.Offset)
Val = Builder.CreateLShr(Val, Info.Offset, "bf.lshr");
- if (Info.Offset + Info.Size < Info.StorageSize)
+ if (static_cast<unsigned>(Info.Offset) + Info.Size < Info.StorageSize)
Val = Builder.CreateAnd(Val, llvm::APInt::getLowBitsSet(Info.StorageSize,
Info.Size),
"bf.clear");
More information about the cfe-commits
mailing list