summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp')
-rw-r--r--llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp b/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
index efb02332bee9..a65e55d5f6f4 100644
--- a/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
+++ b/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
@@ -15,7 +15,8 @@ using namespace llvm;
/// Removes all aliases aren't inside any of the
/// desired Chunks.
-static void stripDebugInfoImpl(Oracle &O, Module &Program) {
+static void stripDebugInfoImpl(Oracle &O, ReducerWorkItem &WorkItem) {
+ Module &Program = WorkItem.getModule();
bool HasDebugInfo = any_of(Program.named_metadata(), [](NamedMDNode &NMD) {
return NMD.getName().startswith("llvm.dbg.");
});