Author: Andy Kaylor Date: 2025-11-26T19:59:44Z New Revision: cabcb5ae55f117d15f41aed8f064dc528ddc9e8f
URL: https://github.com/llvm/llvm-project/commit/cabcb5ae55f117d15f41aed8f064dc528ddc9e8f DIFF: https://github.com/llvm/llvm-project/commit/cabcb5ae55f117d15f41aed8f064dc528ddc9e8f.diff LOG: [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. Added: Modified: clang/lib/CIR/CodeGen/CIRGenFunction.cpp Removed: ################################################################################ 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()}; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
