summaryrefslogtreecommitdiff
path: root/src/ir/linear-execution.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/linear-execution.h')
-rw-r--r--src/ir/linear-execution.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/linear-execution.h b/src/ir/linear-execution.h
index a37349489..230bafee5 100644
--- a/src/ir/linear-execution.h
+++ b/src/ir/linear-execution.h
@@ -87,8 +87,8 @@ struct LinearExecutionWalker : public PostWalker<SubType, VisitorType> {
case Expression::Id::SwitchId: {
self->pushTask(SubType::doVisitSwitch, currp);
self->pushTask(SubType::doNoteNonLinear, currp);
- self->maybePushTask(SubType::scan, &curr->cast<Switch>()->value);
self->pushTask(SubType::scan, &curr->cast<Switch>()->condition);
+ self->maybePushTask(SubType::scan, &curr->cast<Switch>()->value);
break;
}
case Expression::Id::ReturnId: {