diff --git a/lib/Transforms/Instrumentation/ProfilePaths/Graph.h b/lib/Transforms/Instrumentation/ProfilePaths/Graph.h index 45c726c80dd..5597b599e06 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/Graph.h +++ b/lib/Transforms/Instrumentation/ProfilePaths/Graph.h @@ -114,12 +114,14 @@ struct graphListElement{ namespace std { + template<> struct less : public binary_function { bool operator()(Node *n1, Node *n2) const { return n1->getElement() < n2->getElement(); } }; - + + template<> struct less : public binary_function { bool operator()(Edge e1, Edge e2) const { assert(!e1.isNull() && !e2.isNull());