aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 1aab4bb5d7..d3fee11e46 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -51,6 +51,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) {
return llvm::DICompileUnit();
SourceManager &SM = M->getContext().getSourceManager();
+ Loc = SM.getInstantiationLoc(Loc);
const FileEntry *FE = SM.getFileEntryForID(SM.getFileID(Loc));
if (FE == 0) return llvm::DICompileUnit();