diff options
-rw-r--r-- | llvm/lib/Target/X86/Printer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/Printer.cpp b/llvm/lib/Target/X86/Printer.cpp index 0afd399e299..d36f298fe99 100644 --- a/llvm/lib/Target/X86/Printer.cpp +++ b/llvm/lib/Target/X86/Printer.cpp @@ -351,7 +351,8 @@ void Printer::printConstantValueOnly(const Constant *CV) { printConstantValueOnly(field); // Insert the field padding unless it's zero bytes... - O << "\t.zero\t " << padSize << "\n"; + if (padSize) + O << "\t.zero\t " << padSize << "\n"; } assert(sizeSoFar == cvsLayout->StructSize && "Layout of constant struct may be incorrect!"); |