diff options
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/Printer.cpp | 3 | ||||
-rw-r--r-- | lib/Target/X86/X86AsmPrinter.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 0afd399..d36f298 100644 --- a/lib/Target/X86/Printer.cpp +++ b/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!"); diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 0afd399..d36f298 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.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!"); |