diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2011-11-08 01:53:17 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2011-11-08 01:53:17 +0000 |
commit | 1aa1721f14f2162811f5393dbd84e01eadc2c963 (patch) | |
tree | 2fbb8a94ef7b36bff4c6c4fc418228a2eabd4c3a /lib/Sema/SemaPseudoObject.cpp | |
parent | db1822c6de43ff4aa5fa00234bf8222f6f4816e8 (diff) |
Revert r143972, which didn't actually compile under -Wnon-virtual-dtor.
(TIL: -Wnon-virtual-dtor is not in -Wall.)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaPseudoObject.cpp')
-rw-r--r-- | lib/Sema/SemaPseudoObject.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Sema/SemaPseudoObject.cpp b/lib/Sema/SemaPseudoObject.cpp index cf43fcad05..b70c4ca811 100644 --- a/lib/Sema/SemaPseudoObject.cpp +++ b/lib/Sema/SemaPseudoObject.cpp @@ -141,6 +141,8 @@ namespace { : S(S), ResultIndex(PseudoObjectExpr::NoResult), GenericLoc(genericLoc) {} + virtual ~PseudoOpBuilder() {} + /// Add a normal semantic expression. void addSemanticExpr(Expr *semantic) { Semantics.push_back(semantic); @@ -179,9 +181,6 @@ namespace { virtual ExprResult buildGet() = 0; virtual ExprResult buildSet(Expr *, SourceLocation, bool captureSetValueAsResult) = 0; - - protected: - ~PseudoOpBuilder() {} }; /// A PseudoOpBuilder for Objective-C @properties. |