[cfe-commits] r143972 - /cfe/trunk/lib/Sema/SemaPseudoObject.cpp
Matt Beaumont-Gay
matthewbg at google.com
Mon Nov 7 10:30:47 PST 2011
Author: matthewbg
Date: Mon Nov 7 12:30:47 2011
New Revision: 143972
URL: http://llvm.org/viewvc/llvm-project?rev=143972&view=rev
Log:
Better fix for -Wnon-virtual-dtor
Modified:
cfe/trunk/lib/Sema/SemaPseudoObject.cpp
Modified: cfe/trunk/lib/Sema/SemaPseudoObject.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaPseudoObject.cpp?rev=143972&r1=143971&r2=143972&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaPseudoObject.cpp (original)
+++ cfe/trunk/lib/Sema/SemaPseudoObject.cpp Mon Nov 7 12:30:47 2011
@@ -141,8 +141,6 @@
: 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 @@
virtual ExprResult buildGet() = 0;
virtual ExprResult buildSet(Expr *, SourceLocation,
bool captureSetValueAsResult) = 0;
+
+ protected:
+ ~PseudoOpBuilder() {}
};
/// A PseudoOpBuilder for Objective-C @properties.
More information about the cfe-commits
mailing list