diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 12:07:33 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-18 13:49:34 -0800 |
commit | 1ac7a54cd6a138e24b7e932c0768be89a3a65a82 (patch) | |
tree | dc39aedcf5478e159fd19402fa66a3e6dce1b889 | |
parent | 1eac4681b17f405b784ba7709b19d5bfe3a631b1 (diff) |
leave lines with calls to no-ops without a ;
-rw-r--r-- | lib/Target/JSBackend/JSBackend.cpp | 3 |
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: { |