mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[clang][CIR] Fix build. NFC
- 'getStmtExprResult' is removed after d9c7c76. Use the original one to
get the compound stmt's expr result.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user