Skip to content

Commit 091929c

Browse files
andykaylorGeneraluseAI
authored andcommitted
[CIR][NFC] Fix build problem inside an assert (llvm#169715)
A recent change introduced a failure in debug builds due to an incorrect level of indirection inside an assert. This fixes that.
1 parent c3e9988 commit 091929c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ CIRGenFunction::VlaSizePair
11421142
CIRGenFunction::getVLAElements1D(const VariableArrayType *vla) {
11431143
mlir::Value vlaSize = vlaSizeMap[vla->getSizeExpr()];
11441144
assert(vlaSize && "no size for VLA!");
1145-
assert(vlaSize->getType() == sizeTy);
1145+
assert(vlaSize.getType() == sizeTy);
11461146
return {vlaSize, vla->getElementType()};
11471147
}
11481148

0 commit comments

Comments
 (0)