mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
NVPTX: remove another raw delete call
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0280c4c7a7
commit
f0d9f33437
@ -1063,7 +1063,7 @@ bool NVPTXAsmPrinter::doFinalization(Module &M) {
|
||||
|
||||
Module::GlobalListType &global_list = M.getGlobalList();
|
||||
int i, n = global_list.size();
|
||||
GlobalVariable **gv_array = new GlobalVariable *[n];
|
||||
std::vector<GlobalVariable *> gv_array(n);
|
||||
|
||||
// first, back-up GlobalVariable in gv_array
|
||||
i = 0;
|
||||
@ -1083,8 +1083,6 @@ bool NVPTXAsmPrinter::doFinalization(Module &M) {
|
||||
global_list.insert(global_list.end(), gv_array[i]);
|
||||
|
||||
clearAnnotationCache(&M);
|
||||
|
||||
delete[] gv_array;
|
||||
return ret;
|
||||
|
||||
//bool Result = AsmPrinter::doFinalization(M);
|
||||
|
Loading…
x
Reference in New Issue
Block a user