mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
clean ArgTypeListI production: free the PATypeHolder
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1422,9 +1422,15 @@ Types
|
|||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
|
|
||||||
FunctionType *FT = FunctionType::get(RetTy, Params, isVarArg);
|
FunctionType *FT = FunctionType::get(RetTy, Params, isVarArg);
|
||||||
delete $3; // Delete the argument list
|
|
||||||
delete $1; // Delete the return type handle
|
delete $1; // Delete the return type handle
|
||||||
$$ = new PATypeHolder(HandleUpRefs(FT));
|
$$ = new PATypeHolder(HandleUpRefs(FT));
|
||||||
|
|
||||||
|
// Delete the argument list
|
||||||
|
for (I = $3->begin() ; I != E; ++I ) {
|
||||||
|
delete I->Ty;
|
||||||
|
}
|
||||||
|
delete $3;
|
||||||
|
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
}
|
}
|
||||||
| VOID '(' ArgTypeListI ')' OptFuncAttrs {
|
| VOID '(' ArgTypeListI ')' OptFuncAttrs {
|
||||||
@@ -1447,8 +1453,14 @@ Types
|
|||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
|
|
||||||
FunctionType *FT = FunctionType::get($1, Params, isVarArg);
|
FunctionType *FT = FunctionType::get($1, Params, isVarArg);
|
||||||
delete $3; // Delete the argument list
|
|
||||||
$$ = new PATypeHolder(HandleUpRefs(FT));
|
$$ = new PATypeHolder(HandleUpRefs(FT));
|
||||||
|
|
||||||
|
// Delete the argument list
|
||||||
|
for (I = $3->begin() ; I != E; ++I ) {
|
||||||
|
delete I->Ty;
|
||||||
|
}
|
||||||
|
delete $3;
|
||||||
|
|
||||||
CHECK_FOR_ERROR
|
CHECK_FOR_ERROR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user