Skip to content

Commit be7dea9

Browse files
mmhaandykaylor
andauthored
Update clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp
Co-authored-by: Andy Kaylor <[email protected]>
1 parent a87d905 commit be7dea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ bool ConstantAggregateBuilder::add(mlir::TypedAttr typedAttr, CharUnits offset,
186186
bool ConstantAggregateBuilder::addBits(llvm::APInt bits, uint64_t offsetInBits,
187187
bool allowOverwrite) {
188188
const ASTContext &astContext = cgm.getASTContext();
189-
const uint64_t charWidth = cgm.getASTContext().getCharWidth();
189+
const uint64_t charWidth = astContext.getCharWidth();
190190
mlir::Type charTy = cgm.getBuilder().getUIntNTy(charWidth);
191191

192192
// Offset of where we want the first bit to go within the bits of the

0 commit comments

Comments
 (0)