Author: Michael Liao Date: 2025-11-07T11:52:26-05:00 New Revision: f55b393ea03882c1c26cd6ff118a2c5bdf1433bc
URL: https://github.com/llvm/llvm-project/commit/f55b393ea03882c1c26cd6ff118a2c5bdf1433bc DIFF: https://github.com/llvm/llvm-project/commit/f55b393ea03882c1c26cd6ff118a2c5bdf1433bc.diff LOG: [clang][CIR] Fix build. NFC - 'getStmtExprResult' is removed after d9c7c76. Use the original one to get the compound stmt's expr result. Added: Modified: clang/lib/CIR/CodeGen/CIRGenStmt.cpp Removed: ################################################################################ diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp index 1eb7199ce6dfe..7bb8c2153056a 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"); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
