Don't output an empty string.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-06-28 02:12:20 +00:00
parent 7c3cd4d24e
commit fc1c70a8a4

View File

@ -1052,8 +1052,9 @@ void DIType::printInternal(raw_ostream &OS) const {
<< ", align " << getAlignInBits() << ", align " << getAlignInBits()
<< ", offset " << getOffsetInBits(); << ", offset " << getOffsetInBits();
if (isBasicType()) if (isBasicType())
OS << ", enc " if (const char *Enc =
<< dwarf::AttributeEncodingString(DIBasicType(DbgNode).getEncoding()); dwarf::AttributeEncodingString(DIBasicType(DbgNode).getEncoding()))
OS << ", enc " << Enc;
OS << "]"; OS << "]";
if (isPrivate()) if (isPrivate())