diff --git a/src/stmt.cpp b/src/stmt.cpp index 4048648..449facd 100644 --- a/src/stmt.cpp +++ b/src/stmt.cpp @@ -592,7 +592,7 @@ void LoopNestStmt::populate(std::shared_ptr ctx) { auto gen_pol = ctx->getGenPolicy(); auto new_ctx = std::make_shared(ctx); bool old_ctx_state = new_ctx->isTaken(); - std::vector>::iterator taken_switch_id; + auto taken_switch_id = loops.end(); auto simd_switch_id = loops.end(); auto mul_val_loop_idx = loops.end(); for (auto i = loops.begin(); i != loops.end(); ++i) {