aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-21 16:36:31 +0000
committerChris Lattner <sabre@nondot.org>2010-09-21 16:36:31 +0000
commitecf42c4720aba6ee315d0166045c54187ac2de4d (patch)
tree1a2983d566fad5c526266c88b1c4b978703ecca2 /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parentfa45901eaaecbad3b95042518d7991ad0e5c08a0 (diff)
downloadexternal_llvm-ecf42c4720aba6ee315d0166045c54187ac2de4d.zip
external_llvm-ecf42c4720aba6ee315d0166045c54187ac2de4d.tar.gz
external_llvm-ecf42c4720aba6ee315d0166045c54187ac2de4d.tar.bz2
continue MachinePointerInfo'izing, eliminating use of one of the old
getLoad overloads. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index ca97ed3..7fff8ad 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1916,8 +1916,7 @@ TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
DAG.getConstant(bestOffset, PtrType));
unsigned NewAlign = MinAlign(Lod->getAlignment(), bestOffset);
SDValue NewLoad = DAG.getLoad(newVT, dl, Lod->getChain(), Ptr,
- Lod->getSrcValue(),
- Lod->getSrcValueOffset() + bestOffset,
+ Lod->getPointerInfo().getWithOffset(bestOffset),
false, false, NewAlign);
return DAG.getSetCC(dl, VT,
DAG.getNode(ISD::AND, dl, newVT, NewLoad,