diff options
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index e541bb8a82..27ae2b2266 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -54,8 +54,9 @@ StringLiteral::StringLiteral(ASTContext& C, const char *strData, } void StringLiteral::Destroy(ASTContext &C) { - this->~StringLiteral(); C.Deallocate(const_cast<char*>(StrData)); + this->~StringLiteral(); + C.Deallocate(this); } bool UnaryOperator::isPostfix(Opcode Op) { |