mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222446 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e6c1fc9a44
commit
deb068a5cb
@ -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<class NodeType>
|
||||
bool insertEdge(NodeType *From, NodeType *To) { return Visited.insert(To); }
|
||||
template <class NodeType> bool insertEdge(NodeType *From, NodeType *To) {
|
||||
return Visited.insert(To).second;
|
||||
}
|
||||
|
||||
// Called after all children of BB have been visited.
|
||||
template<class NodeType>
|
||||
|
Loading…
x
Reference in New Issue
Block a user