File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2672,6 +2672,9 @@ bool ByteCodeExprGen<Emitter>::delegate(const Expr *E) {
2672
2672
}
2673
2673
2674
2674
template <class Emitter > bool ByteCodeExprGen<Emitter>::visit(const Expr *E) {
2675
+ if (E->getType ().isNull ())
2676
+ return false ;
2677
+
2675
2678
if (E->getType ()->isVoidType ())
2676
2679
return this ->discard (E);
2677
2680
Original file line number Diff line number Diff line change
1
+ // RUN: %clang_cc1 -triple=x86_64-unknown-unknown -o - %s -std=gnu++17 -fsyntax-only -verify -fexperimental-new-constant-interpreter
2
+ // RUN: %clang_cc1 -triple=x86_64-unknown-unknown -o - %s -std=gnu++20 -fsyntax-only -verify -fexperimental-new-constant-interpreter
1
3
// RUN: %clang_cc1 -triple=x86_64-unknown-unknown -o - %s -std=gnu++17 -fsyntax-only -verify
2
4
// RUN: %clang_cc1 -triple=x86_64-unknown-unknown -o - %s -std=gnu++20 -fsyntax-only -verify
3
5
You can’t perform that action at this time.
0 commit comments