diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 83a8b644945..02eeca49e53 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -613,7 +613,7 @@ SparcModuleAsmPrinter::printSingleConstant(const Constant* CV) if (CV->getType()->isPrimitiveType()) { - if (CV->getType() == Type::FloatTy || CV->getType() == Type::DoubleTy) + if (CV->getType()->isFloatingPoint()) toAsm << "0r"; // FP constants must have this prefix toAsm << CV->getStrValue() << "\n"; }