Skip to content

Commit cabcb5a

Browse files
authored
[CIR][NFC] Fix build problem inside an assert (#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 9af00e6 commit cabcb5a

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)