aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-07 19:35:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-07 19:35:40 -0800
commit194d2fab4f8806afac58e4c940b729374fb7e08e (patch)
treec9c18cf63c0f78a4356b803eba53474aafb6946f
parentf177b4d8113ff2f69aca9b67f9b61f78005b5e22 (diff)
fewer casts on math calls
-rw-r--r--lib/Target/JSBackend/CallHandlers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h
index ee99476367..e88b781cb4 100644
--- a/lib/Target/JSBackend/CallHandlers.h
+++ b/lib/Target/JSBackend/CallHandlers.h
@@ -81,7 +81,7 @@ DEF_CALL_HANDLER(__default__, {
if (NumArgs > 0) text += ",";
}
// this is an ffi call if we need casts, and it is not a Math_ builtin (with just 1 arg - Math with more args is different XXX)
- bool FFI = NeedCasts; // && (NumArgs > 1 || Name.find("Math_") != 0);
+ bool FFI = NeedCasts && (NumArgs > 1 || Name.find("Math_") != 0);
unsigned FFI_OUT = FFI ? ASM_FFI_OUT : 0;
for (int i = 0; i < NumArgs; i++) {
if (!NeedCasts) {