diff options
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 12bb2921f5..deb5c9bbfb 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -862,7 +862,8 @@ namespace llvm { /// dump - print compile unit. void DICompileUnit::dump() const { - cerr << " [" << dwarf::LanguageString(getLanguage()) << "] "; + if (getLanguage()) + cerr << " [" << dwarf::LanguageString(getLanguage()) << "] "; cerr << " [" << getDirectory() << "/" << getFilename() << " ]"; } |