diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-05 20:24:08 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-05 20:24:08 +0000 |
commit | 7b55d3665cc1f19859a77426f65218c8083b3142 (patch) | |
tree | 6f43f423e6988745c8bf1b295ab24ede8273e7e1 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 5c06a20814875d4b073204d5662491a4d00d7880 (diff) |
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 9b1e963f99..4570c4d8cf 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3518,6 +3518,12 @@ SDValue SelectionDAG::getMemcpy(SDValue Chain, DebugLoc dl, SDValue Dst, true, DstSV, DstSVOff, SrcSV, SrcSVOff); } + // FIXME: If the memcpy is volatile (isVol), lowering it to a plain libc + // memcpy is not guaranteed to be safe. libc memcpys aren't required to + // respect volatile, so they may do things like read or write memory + // beyond the given memory regions. But fixing this isn't easy, and most + // people don't care. + // Emit a library call. TargetLowering::ArgListTy Args; TargetLowering::ArgListEntry Entry; |