Skip to content

Commit

Permalink
fixed dead code legit
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSK committed Mar 26, 2019
1 parent 8d93dab commit 1253c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/conditions/switch/switchStatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void SwitchStatement::generateIL(std::vector<Instr> &instrs, ILContext &context,
//if there is corresponding label for node, make label
try
{ //is a switch case or default
deadCode = false;
SwitchCasePtr switchCase = Utils::tryCast<SwitchCase>(switchBlockBranches[i], "node is not a switch case");
deadCode = false;
std::string label = labels[labelIndex++];
instrs.push_back(Instr::makeLabel(label));
switchCase->getScopeBlock()->generateIL(instrs, context, destReg);
Expand Down

0 comments on commit 1253c82

Please sign in to comment.