[llvm-commits] [llvm] r159327 - /llvm/trunk/lib/VMCore/DebugInfo.cpp
Bill Wendling
isanbard at gmail.com
Wed Jun 27 19:12:20 PDT 2012
Author: void
Date: Wed Jun 27 21:12:20 2012
New Revision: 159327
URL: http://llvm.org/viewvc/llvm-project?rev=159327&view=rev
Log:
Don't output an empty string.
Modified:
llvm/trunk/lib/VMCore/DebugInfo.cpp
Modified: llvm/trunk/lib/VMCore/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/DebugInfo.cpp?rev=159327&r1=159326&r2=159327&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/DebugInfo.cpp (original)
+++ llvm/trunk/lib/VMCore/DebugInfo.cpp Wed Jun 27 21:12:20 2012
@@ -1052,8 +1052,9 @@
<< ", 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())
More information about the llvm-commits
mailing list