diff options
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp')
| -rw-r--r-- | llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp b/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp index 8dd9872da12a..7dfe028d7513 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp @@ -28,7 +28,8 @@ static bool shouldAlwaysKeep(const Instruction &I) { /// Removes out-of-chunk arguments from functions, and modifies their calls /// accordingly. It also removes allocations of out-of-chunk arguments. -static void extractInstrFromModule(Oracle &O, Module &Program) { +static void extractInstrFromModule(Oracle &O, ReducerWorkItem &WorkItem) { + Module &Program = WorkItem.getModule(); std::vector<Instruction *> InitInstToKeep; for (auto &F : Program) |
