diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/IPConstantPropagation.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/IPConstantPropagation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp b/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp index e27792a098e..30834e2d672 100644 --- a/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp +++ b/llvm/lib/Transforms/IPO/IPConstantPropagation.cpp @@ -56,6 +56,8 @@ bool IPCP::runOnModule(Module &M) { bool Changed = false; bool LocalChange = true; + Context = &M.getContext(); + // FIXME: instead of using smart algorithms, we just iterate until we stop // making changes. while (LocalChange) { |