aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-20 01:06:30 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-20 01:06:30 +0000
commitf4f6f219423a67a969de7b3e0c28bcefdb3c0a10 (patch)
tree5d9bd3112f1cd56a6e0470c43fd84f44ad6c7002 /lib/CodeGen
parent7f5fce7200fdbf03f7d70134a57271e584fcb766 (diff)
Update for new SourceLocation API.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-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();