mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Revert "NVPTX: remove another raw delete call"
This reverts commit r216364. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae65d0e330
commit
ce0adaab88
@ -1063,7 +1063,7 @@ bool NVPTXAsmPrinter::doFinalization(Module &M) {
|
||||
|
||||
Module::GlobalListType &global_list = M.getGlobalList();
|
||||
int i, n = global_list.size();
|
||||
std::vector<GlobalVariable *> gv_array(n);
|
||||
GlobalVariable **gv_array = new GlobalVariable *[n];
|
||||
|
||||
// first, back-up GlobalVariable in gv_array
|
||||
i = 0;
|
||||
@ -1083,6 +1083,8 @@ 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