File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3073,13 +3073,13 @@ bool Compiler<Emitter>::VisitStmtExpr(const StmtExpr *E) {
3073
3073
}
3074
3074
3075
3075
assert (S == Result);
3076
- // This better produces a value (i.e. is an expression).
3077
3076
if (const Expr *ResultExpr = dyn_cast<Expr>(S)) {
3078
3077
if (DiscardResult)
3079
3078
return this ->discard (ResultExpr);
3080
3079
return this ->delegate (ResultExpr);
3081
3080
}
3082
- return false ;
3081
+
3082
+ return this ->visitStmt (S);
3083
3083
}
3084
3084
3085
3085
return BS.destroyLocals ();
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -std=c++1z %s -emit-llvm -fblocks -triple x86_64-apple-darwin10 -o - | FileCheck %s --implicit-check-not=should_not_be_used
2
+ // RUN: %clang_cc1 -std=c++1z %s -emit-llvm -fblocks -triple x86_64-apple-darwin10 -o - -fexperimental-new-constant-interpreter | FileCheck %s --implicit-check-not=should_not_be_used
2
3
3
4
void should_be_used_1 ();
4
5
void should_be_used_2 ();
You can’t perform that action at this time.
0 commit comments