Update for new SourceLocation API.

llvm-svn: 62556
This commit is contained in:
Daniel Dunbar 2009-01-20 01:06:30 +00:00
parent af6a3748c7
commit 9789e1ebcb
1 changed files with 1 additions and 0 deletions

View 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();