[clang][Interp] Fix initializing PredefinedExprs
This commit is contained in:
parent
3902f9b6e2
commit
2cb61a1d11
@ -1750,8 +1750,7 @@ bool ByteCodeExprGen<Emitter>::VisitPredefinedExpr(const PredefinedExpr *E) {
|
||||
if (DiscardResult)
|
||||
return true;
|
||||
|
||||
assert(!Initializing);
|
||||
return this->visit(E->getFunctionName());
|
||||
return this->delegate(E->getFunctionName());
|
||||
}
|
||||
|
||||
template <class Emitter>
|
||||
|
@ -1,4 +1,5 @@
|
||||
// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions
|
||||
// RUN: %clang_cc1 %s -fsyntax-only -Wmicrosoft -verify -fms-extensions -fexperimental-new-constant-interpreter
|
||||
|
||||
using size_t = __SIZE_TYPE__;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user