Skip to content

Commit f55b393

Browse files
committed
[clang][CIR] Fix build. NFC
- 'getStmtExprResult' is removed after d9c7c76. Use the original one to get the compound stmt's expr result.
1 parent 9857791 commit f55b393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static mlir::LogicalResult emitStmtWithResult(CIRGenFunction &cgf,
6666
mlir::LogicalResult CIRGenFunction::emitCompoundStmtWithoutScope(
6767
const CompoundStmt &s, Address *lastValue, AggValueSlot slot) {
6868
mlir::LogicalResult result = mlir::success();
69-
const Stmt *exprResult = s.getStmtExprResult();
69+
const Stmt *exprResult = s.body_back();
7070
assert((!lastValue || (lastValue && exprResult)) &&
7171
"If lastValue is not null then the CompoundStmt must have a "
7272
"StmtExprResult");

0 commit comments

Comments
 (0)