[cfe-commits] r142803 - /cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Oct 24 10:22:36 PDT 2011
Author: d0k
Date: Mon Oct 24 12:22:36 2011
New Revision: 142803
URL: http://llvm.org/viewvc/llvm-project?rev=142803&view=rev
Log:
Fix mismatched new[]/delete[].
Modified:
cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=142803&r1=142802&r2=142803&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Mon Oct 24 12:22:36 2011
@@ -309,7 +309,7 @@
getContext().getFunctionType(RetTy, ArgsArray, NumArgs,
FunctionProtoType::ExtProtoInfo());
- delete ArgsArray;
+ delete[] ArgsArray;
DI->setLocation(StartLoc);
DI->EmitFunctionStart(GD, FnType, CurFn, Builder);
More information about the cfe-commits
mailing list