aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/JSBackend/CallHandlers.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-06 16:42:13 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-06 16:42:29 -0700
commit98a6e9b5dc8a986bd606b1862ae6d033349111dd (patch)
tree1ce34db64f144529c799f470c3f609ee198498c8 /lib/Target/JSBackend/CallHandlers.h
parentb77b12aa8af66be76a9be10d095eea956dcd27d0 (diff)
remove unneeded |0 also in memcpy
Diffstat (limited to 'lib/Target/JSBackend/CallHandlers.h')
-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 e14a0a3fab..62f1e64a9d 100644
--- a/lib/Target/JSBackend/CallHandlers.h
+++ b/lib/Target/JSBackend/CallHandlers.h
@@ -288,7 +288,7 @@ DEF_CALL_HANDLER(llvm_memcpy_p0i8_p0i8_i32, {
if (Factor <= UNROLL_LOOP_MAX) {
// unroll
for (unsigned Offset = 0; Offset < CurrLen; Offset += Align) {
- std::string Add = "+" + utostr(Pos + Offset) + (Align == 1 ? "|0" : "");
+ std::string Add = "+" + utostr(Pos + Offset);
Ret += ";" + getHeapAccess(Dest + Add, Align) + "=" + getHeapAccess(Src + Add, Align) + "|0";
}
} else {