From 98a6e9b5dc8a986bd606b1862ae6d033349111dd Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 6 May 2014 16:42:13 -0700 Subject: remove unneeded |0 also in memcpy --- lib/Target/JSBackend/CallHandlers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-18-g5258