summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/TestRunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-reduce/TestRunner.cpp')
-rw-r--r--llvm/tools/llvm-reduce/TestRunner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/TestRunner.cpp b/llvm/tools/llvm-reduce/TestRunner.cpp
index 286eb2accbc4..c8849de9ed4a 100644
--- a/llvm/tools/llvm-reduce/TestRunner.cpp
+++ b/llvm/tools/llvm-reduce/TestRunner.cpp
@@ -91,7 +91,7 @@ void writeBitcode(const ReducerWorkItem &M, raw_ostream &OutStream) {
Index = std::make_unique<ModuleSummaryIndex>(
buildModuleSummaryIndex(M, nullptr, &PSI));
}
- WriteBitcodeToFile(M, OutStream, Index.get());
+ WriteBitcodeToFile(M.getModule(), OutStream, Index.get());
}
}