Better fix for -Wnon-virtual-dtor

llvm-svn: 143972
This commit is contained in:
Matt Beaumont-Gay 2011-11-07 18:30:47 +00:00
parent cc979f9ae6
commit 50da84bdb9
1 changed files with 3 additions and 2 deletions

View File

@ -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.