aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2014-03-05 15:27:02 -0800
committerDan Gohman <sunfish@mozilla.com>2014-03-05 15:27:02 -0800
commite55f11a6797e5f913745c6b9e6cde0ff3f60201e (patch)
tree8a526b60bca385e0d72f8d2b20085afefbd23c25 /lib
parent9c434263093ec09710c45fe49a40fa39c08a9143 (diff)
Eliminate a few more temporary std::strings.
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/JSBackend/JSBackend.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index 92d562a1df..112078d07e 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -1520,7 +1520,7 @@ void JSWriter::generateExpression(const User *I, raw_string_ostream& Code) {
case Instruction::ZExt: Code << getValueAsCastStr(I->getOperand(0), ASM_UNSIGNED); break;
case Instruction::FPExt: {
if (PreciseF32) {
- Code << "+" + getValueAsStr(I->getOperand(0)); break;
+ Code << "+" << getValueAsStr(I->getOperand(0)); break;
} else {
Code << getValueAsStr(I->getOperand(0)); break;
}
@@ -1548,10 +1548,10 @@ void JSWriter::generateExpression(const User *I, raw_string_ostream& Code) {
std::string V = getValueAsStr(I->getOperand(0));
if (InType->isIntegerTy() && OutType->isFloatingPointTy()) {
assert(InType->getIntegerBitWidth() == 32);
- Code << "(HEAP32[tempDoublePtr>>2]=" << V << "," << getCast("HEAPF32[tempDoublePtr>>2]", Type::getFloatTy(TheModule->getContext())) + ")";
+ Code << "(HEAP32[tempDoublePtr>>2]=" << V << "," << getCast("HEAPF32[tempDoublePtr>>2]", Type::getFloatTy(TheModule->getContext())) << ")";
} else if (OutType->isIntegerTy() && InType->isFloatingPointTy()) {
assert(OutType->getIntegerBitWidth() == 32);
- Code << "(HEAPF32[tempDoublePtr>>2]=" << V << "," << "HEAP32[tempDoublePtr>>2]|0)";
+ Code << "(HEAPF32[tempDoublePtr>>2]=" << V << "," "HEAP32[tempDoublePtr>>2]|0)";
} else {
Code << V;
}