]> granicus.if.org Git - clang/commitdiff
Fix mismatched delete.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 15 Apr 2011 11:21:57 +0000 (11:21 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 15 Apr 2011 11:21:57 +0000 (11:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129564 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 2cdd82418c6a1af07b581b13dcee63147c1eb89c..80946ead64aa53e236f3fa46ae8a190f8631f518 100644 (file)
@@ -772,7 +772,7 @@ Sema::ActOnGenericSelectionExpr(SourceLocation KeyLoc,
   ExprResult ER = CreateGenericSelectionExpr(KeyLoc, DefaultLoc, RParenLoc,
                                              ControllingExpr, Types, Exprs,
                                              NumAssocs);
-  delete Types;
+  delete [] Types;
   return ER;
 }