remove the SourceManager:: and FullSourceLoc::getFileEntryForLoc methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62496 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 9cbefa3..5e4a95c 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -51,7 +51,7 @@
return llvm::DICompileUnit();
SourceManager &SM = M->getContext().getSourceManager();
- const FileEntry *FE = SM.getFileEntryForLoc(Loc);
+ const FileEntry *FE = SM.getFileEntryForID(SM.getCanonicalFileID(Loc));
if (FE == 0) return llvm::DICompileUnit();
// See if this compile unit has been used before.