From 199c1891e9c5add7867f1eab0bf6e9dde0e7d1d9 Mon Sep 17 00:00:00 2001 From: Ken Dyck Date: Sat, 19 Mar 2011 01:28:06 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGExprConstant.cpp | 4 ++-- 1 file 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) { -- 2.40.0