diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index 112d86c5f64..bfbf99c269b 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -329,7 +329,7 @@ class FoldingSetNodeWrapper : public FoldingSetNode { T data; public: FoldingSetNodeWrapper(const T& x) : data(x) {} - virtual ~FoldingSetNodeWrapper(); + virtual ~FoldingSetNodeWrapper() {} template explicit FoldingSetNodeWrapper(const A1& a1) @@ -356,6 +356,9 @@ public: void Profile(FoldingSetNodeID& ID) { FoldingSetTrait::Profile(data, ID); } + T& getValue() { return data; } + const T& getValue() const { return data; } + operator T&() { return data; } operator const T&() const { return data; } };