Skip to content

Commit

Permalink
Fix Scope swap on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
abadams committed Jun 6, 2020
1 parent fd697f2 commit 2d3216d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/VectorizeLoops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1504,9 +1504,9 @@ class RemoveUnnecessaryAtomics : public IRMutator {
if (is_parallel(op->for_type)) {
ScopedValue<bool> old_in_thread(in_thread, true);
Scope<> old_local_allocs;
std::swap(old_local_allocs, local_allocs);
old_local_allocs.swap(local_allocs);
Stmt s = IRMutator::visit(op);
std::swap(old_local_allocs, local_allocs);
old_local_allocs.swap(local_allocs);
return s;
} else {
return IRMutator::visit(op);
Expand Down

0 comments on commit 2d3216d

Please sign in to comment.