aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaPseudoObject.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-11-07 18:30:47 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-11-07 18:30:47 +0000
commit8cacea57b6cd288f7578200e4884ab56bafc1a32 (patch)
tree18ae4b904b5c3559b720491e9282b6cd7c14c9ff /lib/Sema/SemaPseudoObject.cpp
parente1134778613bac2de77d079638439d1424b8f732 (diff)
Better fix for -Wnon-virtual-dtor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaPseudoObject.cpp')
-rw-r--r--lib/Sema/SemaPseudoObject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaPseudoObject.cpp b/lib/Sema/SemaPseudoObject.cpp
index b8497e5f02..b3ed145b15 100644
--- a/lib/Sema/SemaPseudoObject.cpp
+++ b/lib/Sema/SemaPseudoObject.cpp
@@ -141,8 +141,6 @@ namespace {
: S(S), ResultIndex(PseudoObjectExpr::NoResult),
GenericLoc(genericLoc) {}
- virtual ~PseudoOpBuilder() {}
-
/// Add a normal semantic expression.
void addSemanticExpr(Expr *semantic) {
Semantics.push_back(semantic);
@@ -181,6 +179,9 @@ namespace {
virtual ExprResult buildGet() = 0;
virtual ExprResult buildSet(Expr *, SourceLocation,
bool captureSetValueAsResult) = 0;
+
+ protected:
+ ~PseudoOpBuilder() {}
};
/// A PseudoOpBuilder for Objective-C @properties.