aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 83a8b64..02eeca4 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";
}