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:
7c3cd4d
)
Don't output an empty string.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 28 Jun 2012 02:12:20 +0000
(
02:12
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 28 Jun 2012 02:12:20 +0000
(
02:12
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159327
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/DebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/DebugInfo.cpp
b/lib/VMCore/DebugInfo.cpp
index 4ca4c6f9614c4de354b53c0aa8c599506cbc9028..4697fdecf3ebc82c40c3d5b747516fb15228b983 100644
(file)
--- a/
lib/VMCore/DebugInfo.cpp
+++ b/
lib/VMCore/DebugInfo.cpp
@@
-1052,8
+1052,9
@@
void DIType::printInternal(raw_ostream &OS) const {
<< ", align " << getAlignInBits()
<< ", offset " << getOffsetInBits();
if (isBasicType())
- OS << ", enc "
- << dwarf::AttributeEncodingString(DIBasicType(DbgNode).getEncoding());
+ if (const char *Enc =
+ dwarf::AttributeEncodingString(DIBasicType(DbgNode).getEncoding()))
+ OS << ", enc " << Enc;
OS << "]";
if (isPrivate())