From: Nick Lewycky Date: Sat, 4 Jun 2011 02:04:22 +0000 (+0000) Subject: Remove extraneous "virtual" keyword and non-virtual destructor. Caught by X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b33c2b3908b178511ccaace8cacb5e5b14552a9;p=clang Remove extraneous "virtual" keyword and non-virtual destructor. Caught by -Wnon-virtual-dtor! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 3212534e91..3850c06543 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -4046,13 +4046,11 @@ public: /// \brief Build an empty __builtin_astype explicit AsTypeExpr(EmptyShell Empty) : Expr(AsTypeExprClass, Empty) {} - ~AsTypeExpr() { } - /// getSrcExpr - Return the Expr to be converted. Expr *getSrcExpr() const { return SrcExpr; } QualType getDstType() const { return DstType; } - virtual SourceRange getSourceRange() const { + SourceRange getSourceRange() const { return SourceRange(BuiltinLoc, RParenLoc); }