[clang] f55b393 - [clang][CIR] Fix build. NFC

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 08:53:43 PST 2025


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");


        


More information about the cfe-commits mailing list