diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.h | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.h b/llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.h index 45c726c80dd..5597b599e06 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.h +++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/Graph.h @@ -114,12 +114,14 @@ struct graphListElement{  namespace std { +  template<>    struct less<Node *> : public binary_function<Node *, Node *,bool> {      bool operator()(Node *n1, Node *n2) const {        return n1->getElement() < n2->getElement();      }    }; - +  +  template<>    struct less<Edge> : public binary_function<Edge,Edge,bool> {      bool operator()(Edge e1, Edge e2) const {        assert(!e1.isNull() && !e2.isNull());  | 

