aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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: {