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) {
34163416
34173417template <class Emitter >
34183418bool Compiler<Emitter>::VisitBlockExpr(const BlockExpr *E) {
3419+ if (DiscardResult)
3420+ return true ;
3421+
34193422 const Function *Func = nullptr ;
34203423 if (auto F = Compiler<ByteCodeEmitter>(Ctx, P).compileObjCBlock (E))
34213424 Func = F;
Original file line number Diff line number Diff line change 11// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s
22// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fsyntax-only -verify -Wno-unused %s -frecovery-ast -frecovery-ast-type
33
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+
47template <typename ...Ts>
58void f () {
69 ((^ { Ts t; }), ...);
You can’t perform that action at this time.
0 commit comments