summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-07 00:40:41 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-07 00:40:41 +0000
commitd404862cf9d92f5212db97c558241f78d141249b (patch)
tree1eb8132797a747f8950b8a478cfecd9a319bb08c
parent1d8cb2e0d09522513345aa6759381de6dfe560bf (diff)
downloadbcm5719-llvm-d404862cf9d92f5212db97c558241f78d141249b.tar.gz
bcm5719-llvm-d404862cf9d92f5212db97c558241f78d141249b.zip
When making dummy file entries, the directory name should also be
non-empty. llvm-svn: 63986
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index bf1387a99a1..12aeaa926c0 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud