aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-18 12:07:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-18 13:49:34 -0800
commit1ac7a54cd6a138e24b7e932c0768be89a3a65a82 (patch)
treedc39aedcf5478e159fd19402fa66a3e6dce1b889 /lib
parent1eac4681b17f405b784ba7709b19d5bfe3a631b1 (diff)
leave lines with calls to no-ops without a ;
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/JSBackend/JSBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index dd5e9ed0be..613c7a501b 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -1410,7 +1410,8 @@ void JSWriter::generateInstruction(const Instruction *I, raw_string_ostream& Cod
}
case Instruction::Call: {
const CallInst *CI = cast<CallInst>(I);
- Code << handleCall(CI) << ';';
+ std::string Call = handleCall(CI);
+ if (Call.size() > 0) Code << Call << ';';
break;
}
case Instruction::Select: {