Skip to content

Commit

Permalink
MSVC rightfully asserts on uninitialized var
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon committed Dec 16, 2023
1 parent 2024749 commit fc8c35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ void LoopNestStmt::populate(std::shared_ptr<PopulateCtx> ctx) {
auto gen_pol = ctx->getGenPolicy();
auto new_ctx = std::make_shared<PopulateCtx>(ctx);
bool old_ctx_state = new_ctx->isTaken();
std::vector<std::shared_ptr<LoopHead>>::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) {
Expand Down

0 comments on commit fc8c35e

Please sign in to comment.