File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3416,6 +3416,9 @@ bool Compiler<Emitter>::VisitCXXDeleteExpr(const CXXDeleteExpr *E) {
3416
3416
3417
3417
template <class Emitter >
3418
3418
bool Compiler<Emitter>::VisitBlockExpr(const BlockExpr *E) {
3419
+ if (DiscardResult)
3420
+ return true ;
3421
+
3419
3422
const Function *Func = nullptr ;
3420
3423
if (auto F = Compiler<ByteCodeEmitter>(Ctx, P).compileObjCBlock (E))
3421
3424
Func = F;
Original file line number Diff line number Diff line change 1
1
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s
2
2
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s -frecovery-ast -frecovery-ast-type
3
3
4
+ // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused -fexperimental-new-constant-interpreter %s
5
+ // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused -frecovery-ast -frecovery-ast-type -fexperimental-new-constant-interpreter %s
6
+
4
7
template <typename ...Ts>
5
8
void f () {
6
9
((^ { Ts t; }), ...);
You can’t perform that action at this time.
0 commit comments