From: Benjamin Kramer Date: Fri, 15 Apr 2011 11:21:57 +0000 (+0000) Subject: Fix mismatched delete. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bf47f7d3469a53a1b95b255a49d3d7cc66acd9d;p=clang Fix mismatched delete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129564 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 2cdd82418c..80946ead64 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -772,7 +772,7 @@ Sema::ActOnGenericSelectionExpr(SourceLocation KeyLoc, ExprResult ER = CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc, ControllingExpr, Types, Exprs, NumAssocs); - delete Types; + delete [] Types; return ER; }