]> granicus.if.org Git - clang/commitdiff
When making dummy file entries, the directory name should also be
authorDaniel Dunbar <daniel@zuster.org>
Sat, 7 Feb 2009 00:40:41 +0000 (00:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 7 Feb 2009 00:40:41 +0000 (00:40 +0000)
non-empty.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63986 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index bf1387a99a1c4c2bc72bf8dc7d5a0c8304d12d48..12aeaa926c006dd70e8fef0d624b873105b83160 100644 (file)
@@ -64,7 +64,7 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) {
   
   // Get source file information.
   const char *FileName = FE ? FE->getName() : "<unknown>";
-  const char *DirName = FE ? FE->getDir()->getName() : "";
+  const char *DirName = FE ? FE->getDir()->getName() : "<unknown>";
   
   // Create new compile unit.
   // FIXME: Handle other language IDs as well.