[cfe-commits] r47033 - /cfe/trunk/CodeGen/CGExpr.cpp

Dan Gohman gohman at apple.com
Tue Feb 12 13:49:34 PST 2008


Author: djg
Date: Tue Feb 12 15:49:34 2008
New Revision: 47033

URL: http://llvm.org/viewvc/llvm-project?rev=47033&view=rev
Log:
Adjust for the API change to APInt::getBitsSet.
People more familiar with clang than me, please review this.

Modified:
    cfe/trunk/CodeGen/CGExpr.cpp

Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=47033&r1=47032&r2=47033&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Tue Feb 12 15:49:34 2008
@@ -285,7 +285,7 @@
 
   llvm::Constant *Mask = llvm::ConstantInt::get(
            llvm::APInt::getBitsSet(EltTySize, StartBit,
-                                   StartBit + BitfieldSize - 1));
+                                   StartBit + BitfieldSize));
 
   // Mask out any bits that shouldn't be set in the result.
   NewVal = Builder.CreateAnd(NewVal, Mask, "tmp");





More information about the cfe-commits mailing list