diff options
| author | Tim Shen <timshen91@gmail.com> | 2016-08-19 21:20:13 +0000 |
|---|---|---|
| committer | Tim Shen <timshen91@gmail.com> | 2016-08-19 21:20:13 +0000 |
| commit | b5e0f5ac953243829d52aaa0bab65899810b880b (patch) | |
| tree | d20eb83e0345ef7c1da8278f0a3baa0fadef4b98 /llvm/lib/Transforms/Scalar/NaryReassociate.cpp | |
| parent | e4582d4a2e36a29b8b7bf3d6e2b20c7ce600ece3 (diff) | |
| download | bcm5719-llvm-b5e0f5ac953243829d52aaa0bab65899810b880b.tar.gz bcm5719-llvm-b5e0f5ac953243829d52aaa0bab65899810b880b.zip | |
[GraphTraits] Make nodes_iterator dereference to NodeType*/NodeRef
Currently nodes_iterator may dereference to a NodeType* or a NodeType&. Make them all dereference to NodeType*, which is NodeRef later.
Differential Revision: https://reviews.llvm.org/D23704
Differential Revision: https://reviews.llvm.org/D23705
llvm-svn: 279326
Diffstat (limited to 'llvm/lib/Transforms/Scalar/NaryReassociate.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/NaryReassociate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp index 84ccb507a90..5bde45f1779 100644 --- a/llvm/lib/Transforms/Scalar/NaryReassociate.cpp +++ b/llvm/lib/Transforms/Scalar/NaryReassociate.cpp @@ -211,7 +211,7 @@ bool NaryReassociatePass::doOneIteration(Function &F) { // ensures that all bases of a candidate are in Candidates when we process it. for (auto Node = GraphTraits<DominatorTree *>::nodes_begin(DT); Node != GraphTraits<DominatorTree *>::nodes_end(DT); ++Node) { - BasicBlock *BB = Node->getBlock(); + BasicBlock *BB = (*Node)->getBlock(); for (auto I = BB->begin(); I != BB->end(); ++I) { if (SE->isSCEVable(I->getType()) && isPotentiallyNaryReassociable(&*I)) { const SCEV *OldSCEV = SE->getSCEV(&*I); |

