diff options
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp')
| -rw-r--r-- | llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp index 4e25c0c82c9f..b448081ee1a2 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp @@ -23,7 +23,9 @@ static bool shouldAlwaysKeep(const GlobalVariable &GV) { } /// Removes all the GVs that aren't inside the desired Chunks. -static void extractGVsFromModule(Oracle &O, Module &Program) { +static void extractGVsFromModule(Oracle &O, ReducerWorkItem &WorkItem) { + Module &Program = WorkItem.getModule(); + // Get GVs inside desired chunks std::vector<Constant *> InitGVsToKeep; for (auto &GV : Program.globals()) { |
