We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d414648 + bd05e2e commit 01a2645Copy full SHA for 01a2645
tools/sil-opt/SILOpt.cpp
@@ -427,10 +427,10 @@ int main(int argc, char **argv) {
427
llvm::errs() << EC.message() << '\n';
428
return 1;
429
}
430
- CI.getSILModule()->setOptRecordStream(
431
- llvm::make_unique<llvm::yaml::Output>(*OptRecordFile,
432
- &CI.getSourceMgr()),
433
- std::move(OptRecordFile));
+ auto Stream = llvm::make_unique<llvm::yaml::Output>(*OptRecordFile,
+ &CI.getSourceMgr());
+ CI.getSILModule()->setOptRecordStream(std::move(Stream),
+ std::move(OptRecordFile));
434
435
436
if (OptimizationGroup == OptGroup::Diagnostics) {
0 commit comments