From: Michael Ilseman Date: Thu, 20 Nov 2014 19:33:30 +0000 (+0000) Subject: Update template specialization to reflect API changes. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6595839fc5537cf338e61e115dbef4ab5d98bd00;p=platform%2Fupstream%2Fllvm.git Update template specialization to reflect API changes. po_iterator_storage's insertEdge was updated to reflect the API changes from many of our insert methods in r222334, however the template specialization for external storage was not updated. This updates the specialization. llvm-svn: 222446 --- diff --git a/llvm/include/llvm/ADT/PostOrderIterator.h b/llvm/include/llvm/ADT/PostOrderIterator.h index f1a69c6..dfadc3b 100644 --- a/llvm/include/llvm/ADT/PostOrderIterator.h +++ b/llvm/include/llvm/ADT/PostOrderIterator.h @@ -76,8 +76,9 @@ public: // Return true if edge destination should be visited, called with From = 0 for // the root node. // Graph edges can be pruned by specializing this function. - template - bool insertEdge(NodeType *From, NodeType *To) { return Visited.insert(To); } + template bool insertEdge(NodeType *From, NodeType *To) { + return Visited.insert(To).second; + } // Called after all children of BB have been visited. template