Sfoglia il codice sorgente

Fix mismatched new[]/delete[].

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142803 91177308-0d34-0410-b5e6-96231b3b80d8
Benjamin Kramer 14 anni fa
parent
commit
2a04f1cf72
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/CodeGen/CodeGenFunction.cpp

+ 1 - 1
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);