From 50da84bdb973cb5e9918bc3cd0fd1ba42aeb993e Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Mon, 7 Nov 2011 18:30:47 +0000 Subject: [PATCH] Better fix for -Wnon-virtual-dtor llvm-svn: 143972 --- clang/lib/Sema/SemaPseudoObject.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/Sema/SemaPseudoObject.cpp b/clang/lib/Sema/SemaPseudoObject.cpp index b8497e5f0285..b3ed145b155c 100644 --- a/clang/lib/Sema/SemaPseudoObject.cpp +++ b/clang/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.