diff options
Diffstat (limited to 'lib/Target/SparcV9/SparcV9AsmPrinter.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 385ffffe56..032faf12d6 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -612,10 +612,10 @@ SparcAsmPrinter::printGlobalVariable(const GlobalVariable* GV) printConstant(GV->getInitializer(), getID(GV)); else { toAsm << "\t.align\t" - << TypeToAlignment(GV->getType()->getValueType(), Target) << endl; + << TypeToAlignment(GV->getType()->getElementType(), Target) << endl; toAsm << "\t.type\t" << getID(GV) << ",#object" << endl; toAsm << "\t.reserve\t" << getID(GV) << "," - << TypeToSize(GV->getType()->getValueType(), Target) + << TypeToSize(GV->getType()->getElementType(), Target) << endl; } } |