From: Ken Dyck Date: Sat, 19 Mar 2011 01:28:06 +0000 (+0000) Subject: Use CharUnits's new increment operator. No change in functionality intended. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=199c1891e9c5add7867f1eab0bf6e9dde0e7d1d9;p=clang Use CharUnits's new increment operator. No change in functionality intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127938 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 3ad40ddb15..c5d4a658c6 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -252,7 +252,7 @@ void ConstStructBuilder::AppendBitField(const FieldDecl *Field, } Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), Tmp)); - NextFieldOffsetInChars += CharUnits::One(); + ++NextFieldOffsetInChars; FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth); } @@ -274,7 +274,7 @@ void ConstStructBuilder::AppendBitField(const FieldDecl *Field, // Append the last element. Elements.push_back(llvm::ConstantInt::get(CGM.getLLVMContext(), FieldValue)); - NextFieldOffsetInChars += CharUnits::One(); + ++NextFieldOffsetInChars; } void ConstStructBuilder::AppendPadding(CharUnits PadSize) {