diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-08-26 22:36:50 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-08-26 22:36:50 +0000 |
commit | abfdf928d81d968a04f5b40c48e38f796c14d1b3 (patch) | |
tree | a0336e1f1d256e326af5f66735a640bea3d6573b /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 655c1dc63d0cf94c522c9fc9357b2817a7fd4d0c (diff) | |
download | bcm5719-llvm-abfdf928d81d968a04f5b40c48e38f796c14d1b3.tar.gz bcm5719-llvm-abfdf928d81d968a04f5b40c48e38f796c14d1b3.zip |
disallow direct access to SDValue::ResNo, provide a getter instead
llvm-svn: 55394
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 49b695c63e3..f1871fc1646 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2730,7 +2730,7 @@ static bool ExtendUsesToFormExtLoad(SDNode *N, SDValue N0, SDNode *User = *UI; for (unsigned i = 0, e = User->getNumOperands(); i != e; ++i) { SDValue UseOp = User->getOperand(i); - if (UseOp.Val == N && UseOp.ResNo == 0) { + if (UseOp.Val == N && UseOp.getResNo() == 0) { BothLiveOut = true; break; } @@ -3366,7 +3366,7 @@ static SDNode *getBuildPairElt(SDNode *N, unsigned i) { SDValue Elt = N->getOperand(i); if (Elt.getOpcode() != ISD::MERGE_VALUES) return Elt.Val; - return Elt.getOperand(Elt.ResNo).Val; + return Elt.getOperand(Elt.getResNo()).Val; } /// CombineConsecutiveLoads - build_pair (load, load) -> load |