From 2a04f1cf72d57cf5d74b24e785c04f7a3fc3398f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 24 Oct 2011 17:22:36 +0000 Subject: [PATCH] Fix mismatched new[]/delete[]. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142803 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 7036682eb5..3da4bd1f98 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -309,7 +309,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, getContext().getFunctionType(RetTy, ArgsArray, NumArgs, FunctionProtoType::ExtProtoInfo()); - delete ArgsArray; + delete[] ArgsArray; DI->setLocation(StartLoc); DI->EmitFunctionStart(GD, FnType, CurFn, Builder); -- 2.50.1