summaryrefslogtreecommitdiff
path: root/src/passes/LoopInvariantCodeMotion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LoopInvariantCodeMotion.cpp')
-rw-r--r--src/passes/LoopInvariantCodeMotion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/LoopInvariantCodeMotion.cpp b/src/passes/LoopInvariantCodeMotion.cpp
index 1329c02a1..4239e39c3 100644
--- a/src/passes/LoopInvariantCodeMotion.cpp
+++ b/src/passes/LoopInvariantCodeMotion.cpp
@@ -49,7 +49,7 @@ struct LoopInvariantCodeMotion
void doWalkFunction(Function* func) {
// Compute all local dependencies first.
- LocalGraph localGraphInstance(func);
+ LocalGraph localGraphInstance(func, getModule());
localGraph = &localGraphInstance;
// Traverse the function.
super::doWalkFunction(func);