We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acdf1c7 commit 65f94d7Copy full SHA for 65f94d7
clang/lib/AST/ByteCode/Compiler.cpp
@@ -5629,6 +5629,9 @@ bool Compiler<Emitter>::visitContinueStmt(const ContinueStmt *S) {
5629
template <class Emitter>
5630
bool Compiler<Emitter>::visitSwitchStmt(const SwitchStmt *S) {
5631
const Expr *Cond = S->getCond();
5632
+ if (Cond->containsErrors())
5633
+ return false;
5634
+
5635
PrimType CondT = this->classifyPrim(Cond->getType());
5636
LocalScope<Emitter> LS(this);
5637
0 commit comments