From: Daniel Dunbar Date: Sat, 7 Feb 2009 00:40:41 +0000 (+0000) Subject: When making dummy file entries, the directory name should also be X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8e58d0b94b03d6662d9a9529cee108c64bcd0b2;p=clang When making dummy file entries, the directory name should also be non-empty. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63986 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index bf1387a99a..12aeaa926c 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -64,7 +64,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) { // Get source file information. const char *FileName = FE ? FE->getName() : ""; - const char *DirName = FE ? FE->getDir()->getName() : ""; + const char *DirName = FE ? FE->getDir()->getName() : ""; // Create new compile unit. // FIXME: Handle other language IDs as well.