From a8ae435c697fe3cf16684fc8a114d8a2db2dd709 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 7 Jun 2013 02:07:34 +0200 Subject: [PATCH] Remove bogous DtoMemCpy assertion. DtoMemCpy is called with identical pointer arguments in some legal cases. --- gen/tollvm.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/gen/tollvm.cpp b/gen/tollvm.cpp index 93628885..3917478a 100644 --- a/gen/tollvm.cpp +++ b/gen/tollvm.cpp @@ -545,8 +545,6 @@ void DtoMemSetZero(LLValue* dst, LLValue* nbytes) void DtoMemCpy(LLValue* dst, LLValue* src, LLValue* nbytes, unsigned align) { - assert (src != dst && "src and dst of memcpy must be different"); - LLType* VoidPtrTy = getVoidPtrType(); dst = DtoBitCast(dst, VoidPtrTy);