commit | d4d90a0e0d307a0ecd4ed48564b71d9bf90ae023 | [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 | b09237611553f79f33c8f4ba9be8b4a12c130569 [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; }