summaryrefslogtreecommitdiff
path: root/tools/clang-rename/ClangRename.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-rename/ClangRename.cpp')
-rw-r--r--tools/clang-rename/ClangRename.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/clang-rename/ClangRename.cpp b/tools/clang-rename/ClangRename.cpp
index 071d3cb90f..613885bf75 100644
--- a/tools/clang-rename/ClangRename.cpp
+++ b/tools/clang-rename/ClangRename.cpp
@@ -222,8 +222,8 @@ int main(int argc, const char **argv) {
Tool.applyAllReplacements(Rewrite);
for (const auto &File : Files) {
- const auto *Entry = FileMgr.getFile(File);
- const auto ID = Sources.getOrCreateFileID(Entry, SrcMgr::C_User);
+ auto Entry = FileMgr.getFile(File);
+ const auto ID = Sources.getOrCreateFileID(*Entry, SrcMgr::C_User);
Rewrite.getEditBuffer(ID).write(outs());
}
}