summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-16 20:22:43 +0000
committerDan Gohman <gohman@apple.com>2010-04-16 20:22:43 +0000
commit4d273f451900f678ef17330969cb817523a23db0 (patch)
tree540fc6460a3b8e51cc24a8f57b2d96a0d3e6e915 /llvm/lib
parent148c69a3f608cf1687dcf661ddc1e3aa282e262a (diff)
downloadbcm5719-llvm-4d273f451900f678ef17330969cb817523a23db0.tar.gz
bcm5719-llvm-4d273f451900f678ef17330969cb817523a23db0.zip
Commit this, which should have accompanied 101531.
llvm-svn: 101532
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 1afb41801cc..c3adab26109 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3223,7 +3223,8 @@ static bool FindOptimalMemOpLowering(std::vector<EVT> &MemOps,
// indicates whether the memcpy source is constant so it does not need to be
// loaded.
EVT VT = TLI.getOptimalMemOpType(Size, DstAlign, SrcAlign,
- NonScalarIntSafe, MemcpyStrSrc, DAG);
+ NonScalarIntSafe, MemcpyStrSrc,
+ DAG.getMachineFunction());
if (VT == MVT::Other) {
if (DstAlign >= TLI.getTargetData()->getPointerPrefAlignment() ||
OpenPOWER on IntegriCloud