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 8e00b71 + 19a76ea commit a7f8f89Copy full SHA for a7f8f89
lib/FrontendTool/FrontendTool.cpp
@@ -1261,10 +1261,12 @@ static bool performCompileStepsPostSILGen(
1261
1262
std::unique_ptr<llvm::raw_fd_ostream> OptRecordFile =
1263
createOptRecordFile(SILOpts.OptRecordFile, Instance.getDiags());
1264
- if (OptRecordFile)
1265
- SM->setOptRecordStream(llvm::make_unique<llvm::yaml::Output>(
1266
- *OptRecordFile, &Instance.getSourceMgr()),
1267
- std::move(OptRecordFile));
+ if (OptRecordFile) {
+ auto Output =
+ llvm::make_unique<llvm::yaml::Output>(*OptRecordFile,
+ &Instance.getSourceMgr());
1268
+ SM->setOptRecordStream(std::move(Output), std::move(OptRecordFile));
1269
+ }
1270
1271
if (performMandatorySILPasses(Invocation, SM.get(), observer))
1272
return true;
0 commit comments