summaryrefslogtreecommitdiff
path: root/src/passes/Precompute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Precompute.cpp')
-rw-r--r--src/passes/Precompute.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index 591245ab5..621c2f886 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -381,8 +381,7 @@ private:
// prepare the work list. we add things here that might change to a constant
// initially, that means everything
UniqueDeferredQueue<Expression*> work;
- for (auto& pair : localGraph.locations) {
- auto* curr = pair.first;
+ for (auto& [curr, _] : localGraph.locations) {
work.push(curr);
}
// the constant value, or none if not a constant