diff options
Diffstat (limited to 'include/llvm/ADT/GraphTraits.h')
-rw-r--r-- | include/llvm/ADT/GraphTraits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/GraphTraits.h b/include/llvm/ADT/GraphTraits.h index 2d56064..2b3a78b 100644 --- a/include/llvm/ADT/GraphTraits.h +++ b/include/llvm/ADT/GraphTraits.h @@ -73,9 +73,9 @@ struct GraphTraits { // template <class GraphType> struct Inverse { - GraphType &Graph; + const GraphType &Graph; - inline Inverse(GraphType &G) : Graph(G) {} + inline Inverse(const GraphType &G) : Graph(G) {} }; // Provide a partial specialization of GraphTraits so that the inverse of an inverse |