diff options
author | Ken Dyck <kd@kendyck.com> | 2011-03-19 01:28:06 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-03-19 01:28:06 +0000 |
commit | 199c1891e9c5add7867f1eab0bf6e9dde0e7d1d9 (patch) | |
tree | b2b7c5c89f268797f61b8f623cbe2f62e6f8a061 /lib/CodeGen/CGExprConstant.cpp | |
parent | f899af662801ee6bb82be871eb0b8d19b61503ba (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |