diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-18 22:22:16 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-18 22:22:16 +0000 |
commit | 03b913d53941f5daa2ddd50f6f9859e669581686 (patch) | |
tree | 22c98751751c584836f690389fec1210783dee1d /clang/lib/CodeGen/CGExpr.cpp | |
parent | a33f504b3e8a1ad3548e5eb9262774a7587bde69 (diff) | |
download | bcm5719-llvm-03b913d53941f5daa2ddd50f6f9859e669581686.tar.gz bcm5719-llvm-03b913d53941f5daa2ddd50f6f9859e669581686.zip |
Similar to 170440 - fix build warning with gcc
llvm-svn: 170461
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index 5181b1d52cd..a36d4ee9f8d 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/lib/CodeGen/CGExpr.cpp @@ -1200,7 +1200,7 @@ RValue CodeGenFunction::EmitLoadOfBitfieldLValue(LValue LV) { } 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"); |