From 7b33c2b3908b178511ccaace8cacb5e5b14552a9 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 4 Jun 2011 02:04:22 +0000 Subject: [PATCH] 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 --- include/clang/AST/Expr.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); } -- 2.50.1