mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 01:42:09 +00:00
Only emit inter-field-padding if the amount of padding is != 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2148bcb7e3
commit
b3aad5d28f
@ -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!");
|
||||
|
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user