diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-07 00:40:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-07 00:40:41 +0000 |
commit | f8e58d0b94b03d6662d9a9529cee108c64bcd0b2 (patch) | |
tree | a7b1ad229c2efbfef5b7e40459bae967c7107b40 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 392cf91c7b3270a9b27baa3c5b21a836f3330d98 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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() : "<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. |