[clang] [CIR][NFC] Fix build problem inside an assert (PR #169715)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 26 11:34:24 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Andy Kaylor (andykaylor)
<details>
<summary>Changes</summary>
A recent change introduced a failure in debug builds due to an incorrect level of indirection inside an assert. This fixes that.
---
Full diff: https://github.com/llvm/llvm-project/pull/169715.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenFunction.cpp (+1-1)
``````````diff
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
index 5150a1682f712..22128ed3521f8 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
@@ -1142,7 +1142,7 @@ CIRGenFunction::VlaSizePair
CIRGenFunction::getVLAElements1D(const VariableArrayType *vla) {
mlir::Value vlaSize = vlaSizeMap[vla->getSizeExpr()];
assert(vlaSize && "no size for VLA!");
- assert(vlaSize->getType() == sizeTy);
+ assert(vlaSize.getType() == sizeTy);
return {vlaSize, vla->getElementType()};
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/169715
More information about the cfe-commits
mailing list