[llvm-commits] [llvm] r65405 - /llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Feb 24 15:19:45 PST 2009


Author: void
Date: Tue Feb 24 17:19:45 2009
New Revision: 65405

URL: http://llvm.org/viewvc/llvm-project?rev=65405&view=rev
Log:
--- Merging (from foreign repository) r65402 into '.':
U    lib/Analysis/DebugInfo.cpp

If compile unit's language is not set then don't crash while dump'ing compile
unit.

Modified:
    llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp

Modified: llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp?rev=65405&r1=65404&r2=65405&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Analysis/DebugInfo.cpp Tue Feb 24 17:19:45 2009
@@ -862,7 +862,8 @@
 
 /// dump - print compile unit.
 void DICompileUnit::dump() const {
-  cerr << " [" << dwarf::LanguageString(getLanguage()) << "] ";
+  if (getLanguage())
+    cerr << " [" << dwarf::LanguageString(getLanguage()) << "] ";
   cerr << " [" << getDirectory() << "/" << getFilename() << " ]";
 }
 





More information about the llvm-commits mailing list