diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-25 09:44:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-25 09:44:49 -0800 |
commit | a7bf0955a85e27ae95c8a2513af9ea00d6f16e0b (patch) | |
tree | 8c4dbc57b3c907701db2d248b9f44ef60bb1b905 /lib/Target/CppBackend/CPPBackend.cpp | |
parent | 900fdcb879f62b34dd124e5d57985890434b64c0 (diff) |
add missing coercion on Math.imul
Diffstat (limited to 'lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | lib/Target/CppBackend/CPPBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index 4a311f0ce0..2cd4b2d95e 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -885,7 +885,7 @@ std::string CppWriter::getDoubleToInt(const StringRef &s) { std::string CppWriter::getIMul(const Value *V1, const Value *V2) { // TODO: if small enough, emit direct multiply - return "Math_imul(" + getValueAsStr(V1) + ", " + getValueAsStr(V2) + ")"; + return "Math_imul(" + getValueAsStr(V1) + ", " + getValueAsStr(V2) + ")|0"; } // printConstant - Print out a constant pool entry... |