mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 19:03:13 +01:00
Remove bogous DtoMemCpy assertion.
DtoMemCpy is called with identical pointer arguments in some legal cases.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user