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.
1 parent c2f7452 commit a98e830Copy full SHA for a98e830
lib/SILGen/SILGen.cpp
@@ -55,7 +55,11 @@ SILGenModule::SILGenModule(SILModule &M, ModuleDecl *SM)
55
FileIDsByFilePath(SM->computeFileIDMap(/*shouldDiagnose=*/true)) {
56
const SILOptions &Opts = M.getOptions();
57
if (!Opts.UseProfile.empty()) {
58
- auto ReaderOrErr = llvm::IndexedInstrProfReader::create(Opts.UseProfile);
+ // FIXME: Create file system to read the profile. In the future, the vfs
59
+ // needs to come from CompilerInstance.
60
+ auto FS = llvm::vfs::getRealFileSystem();
61
+ auto ReaderOrErr =
62
+ llvm::IndexedInstrProfReader::create(Opts.UseProfile, *FS);
63
if (auto E = ReaderOrErr.takeError()) {
64
diagnose(SourceLoc(), diag::profile_read_error, Opts.UseProfile,
65
llvm::toString(std::move(E)));
0 commit comments