From: Benjamin Kramer Date: Mon, 24 Oct 2011 17:22:36 +0000 (+0000) Subject: Fix mismatched new[]/delete[]. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a04f1cf72d57cf5d74b24e785c04f7a3fc3398f;p=clang Fix mismatched new[]/delete[]. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142803 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);