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.
SourceManager::getFileEntryRefForID()
1 parent 24a0859 commit 65331daCopy full SHA for 65331da
clang/lib/Rewrite/Rewriter.cpp
@@ -412,7 +412,7 @@ bool Rewriter::overwriteChangedFiles() {
412
unsigned OverwriteFailure = Diag.getCustomDiagID(
413
DiagnosticsEngine::Error, "unable to overwrite file %0: %1");
414
for (buffer_iterator I = buffer_begin(), E = buffer_end(); I != E; ++I) {
415
- OptionalFileEntryRef Entry = getSourceMgr().getFileEntryRefForID(I->first);
+ const FileEntry *Entry = getSourceMgr().getFileEntryForID(I->first);
416
if (auto Error =
417
llvm::writeToOutput(Entry->getName(), [&](llvm::raw_ostream &OS) {
418
I->second.write(OS);
0 commit comments