projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b4203
)
If compile unit's language is not set then don't crash while dump'ing compile unit.
author
Devang Patel
<dpatel@apple.com>
Tue, 24 Feb 2009 23:15:09 +0000
(23:15 +0000)
committer
Devang Patel
<dpatel@apple.com>
Tue, 24 Feb 2009 23:15:09 +0000
(23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65402
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DebugInfo.cpp
b/lib/Analysis/DebugInfo.cpp
index 12bb2921f51ee5dc04869149c788a5599f6eced2..deb5c9bbfb481b8e674ac7612bb9dc947b40a598 100644
(file)
--- 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() << " ]";
}