From f55b393ea03882c1c26cd6ff118a2c5bdf1433bc Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Fri, 7 Nov 2025 11:48:00 -0500 Subject: [PATCH] [clang][CIR] Fix build. NFC - 'getStmtExprResult' is removed after d9c7c76. Use the original one to get the compound stmt's expr result. --- clang/lib/CIR/CodeGen/CIRGenStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp index 1eb7199ce6df..7bb8c2153056 100644 --- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp @@ -66,7 +66,7 @@ static mlir::LogicalResult emitStmtWithResult(CIRGenFunction &cgf, mlir::LogicalResult CIRGenFunction::emitCompoundStmtWithoutScope( const CompoundStmt &s, Address *lastValue, AggValueSlot slot) { mlir::LogicalResult result = mlir::success(); - const Stmt *exprResult = s.getStmtExprResult(); + const Stmt *exprResult = s.body_back(); assert((!lastValue || (lastValue && exprResult)) && "If lastValue is not null then the CompoundStmt must have a " "StmtExprResult");