fix a bug in post-order iterators with external storage, patch by
[oota-llvm.git] / include / llvm / ADT / FoldingSet.h
index e31e112d0e61ed86e567135792d92223cc8fba1d..1bcff3dc9eb3f30565f4fa3b196f5227992a6056 100644 (file)
@@ -51,7 +51,7 @@ namespace llvm {
 ///    public:
 ///      MyNode(const char *N, unsigned V) : Name(N), Value(V) {}
 ///       ...
-///      void Profile(FoldingSetNodeID &ID) {
+///      void Profile(FoldingSetNodeID &ID) const {
 ///        ID.AddString(Name);
 ///        ID.AddInteger(Value);
 ///       }