[cfe-commits] r63986 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Daniel Dunbar daniel at zuster.org
Fri Feb 6 16:40:41 PST 2009


Author: ddunbar
Date: Fri Feb  6 18:40:41 2009
New Revision: 63986

URL: http://llvm.org/viewvc/llvm-project?rev=63986&view=rev
Log:
When making dummy file entries, the directory name should also be
non-empty.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=63986&r1=63985&r2=63986&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Feb  6 18:40:41 2009
@@ -64,7 +64,7 @@
   
   // 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.





More information about the cfe-commits mailing list