diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-06-28 02:12:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-06-28 02:12:20 +0000 |
commit | fc1c70a8a4f8bc7f4e51ece5b383966d602d89b7 (patch) | |
tree | 4e3642d41da99fb1bb02e43e710d52ec609e1a1a /lib/VMCore | |
parent | 7c3cd4d24edf125bafc9aa258fc8e8ae1b00a4df (diff) | |
download | external_llvm-fc1c70a8a4f8bc7f4e51ece5b383966d602d89b7.zip external_llvm-fc1c70a8a4f8bc7f4e51ece5b383966d602d89b7.tar.gz external_llvm-fc1c70a8a4f8bc7f4e51ece5b383966d602d89b7.tar.bz2 |
Don't output an empty string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DebugInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VMCore/DebugInfo.cpp b/lib/VMCore/DebugInfo.cpp index 4ca4c6f..4697fde 100644 --- 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()) |