]> granicus.if.org Git - clang/commitdiff
Update for new SourceLocation API.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 20 Jan 2009 01:06:30 +0000 (01:06 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 20 Jan 2009 01:06:30 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62556 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 1aab4bb5d7d3c9b7aee23c5ede4f94db21751459..d3fee11e467dcd23c640dd6e82dc02403f0a527a 100644 (file)
@@ -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();