From 5bf47f7d3469a53a1b95b255a49d3d7cc66acd9d Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 15 Apr 2011 11:21:57 +0000 Subject: [PATCH] Fix mismatched delete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129564 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1