lowering a volatile llvm.memcpy to a libc memcpy is ok.
authorChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 20:11:45 +0000 (20:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 20:11:45 +0000 (20:11 +0000)
PR6779

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100457 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 103872fe2adc9005e56db6b9b19a6267d63fc419..9b1e963f99dd4c56c40e22123cf7332bbd266219 100644 (file)
@@ -3519,7 +3519,6 @@ SDValue SelectionDAG::getMemcpy(SDValue Chain, DebugLoc dl, SDValue Dst,
   }
 
   // Emit a library call.
-  assert(!isVol && "library memcpy does not support volatile");
   TargetLowering::ArgListTy Args;
   TargetLowering::ArgListEntry Entry;
   Entry.Ty = TLI.getTargetData()->getIntPtrType(*getContext());