mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 09:46:57 +00:00
Remove assert to treat memmove and memset like memcpy
llvm-svn: 100521
This commit is contained in:
parent
a8a2718d7d
commit
c0da8af5c3
@ -3571,8 +3571,10 @@ SDValue SelectionDAG::getMemmove(SDValue Chain, DebugLoc dl, SDValue Dst,
|
||||
if (Result.getNode())
|
||||
return Result;
|
||||
|
||||
// FIXME: If the memmove is volatile, lowering it to plain libc memmove may
|
||||
// not be safe. See memcpy above for more details.
|
||||
|
||||
// Emit a library call.
|
||||
assert(!isVol && "library memmove does not support volatile");
|
||||
TargetLowering::ArgListTy Args;
|
||||
TargetLowering::ArgListEntry Entry;
|
||||
Entry.Ty = TLI.getTargetData()->getIntPtrType(*getContext());
|
||||
@ -3620,8 +3622,7 @@ SDValue SelectionDAG::getMemset(SDValue Chain, DebugLoc dl, SDValue Dst,
|
||||
if (Result.getNode())
|
||||
return Result;
|
||||
|
||||
// Emit a library call.
|
||||
assert(!isVol && "library memset does not support volatile");
|
||||
// Emit a library call.
|
||||
const Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*getContext());
|
||||
TargetLowering::ArgListTy Args;
|
||||
TargetLowering::ArgListEntry Entry;
|
||||
|
Loading…
x
Reference in New Issue
Block a user