diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 24efa26b496..618fb6dc30f 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -227,7 +227,7 @@ SparcAsmPrinter::printOneOperand(const MachineOperand &op) int RegNum = (int)op.getAllocatedRegNum(); // ****this code is temporary till NULL Values are fixed - if (RegNum == 10000) { + if (RegNum == Target.getRegInfo().getInvalidRegNum()) { toAsm << ""; } else { toAsm << "%" << Target.getRegInfo().getUnifiedRegName(RegNum);