commit | 508955156a25a9abc470a29e1760aa176d341cf9 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Mon Jul 06 18:42:36 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Mon Jul 06 18:42:36 2009 +0000 |
tree | 8b7b55caabc0fbb16b6025f38e84ebc4fbd79c31 | |
parent | e034393b15bc9257314b0c7adfb778e0c504bed7 [diff] [blame] |
Thread LLVMContext through the constant folding APIs, which touches a lot of files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74844 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index de5eedf..b8e4479 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -986,7 +986,7 @@ Worklist.pop_back(); // Simple constant folding. - if (Constant *C = ConstantFoldInstruction(I)) { + if (Constant *C = ConstantFoldInstruction(I, Context)) { ReplaceUsesOfWith(I, C, Worklist, L, LPM); continue; }