mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
[TableGen] Remove some deletes that violate ownership semantics. These don't seem to execute in our codebase today and date back to a time when there was an allocation in this function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cfe24ac62f
commit
bdd6973671
@ -404,12 +404,8 @@ RecTy *llvm::resolveTypes(RecTy *T1, RecTy *T2) {
|
||||
++i) {
|
||||
RecordRecTy *SuperRecTy1 = RecordRecTy::get(*i);
|
||||
RecTy *NewType1 = resolveTypes(SuperRecTy1, T2);
|
||||
if (NewType1) {
|
||||
if (NewType1 != SuperRecTy1) {
|
||||
delete SuperRecTy1;
|
||||
}
|
||||
if (NewType1)
|
||||
return NewType1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (RecordRecTy *RecTy2 = dyn_cast<RecordRecTy>(T2)) {
|
||||
@ -422,12 +418,8 @@ RecTy *llvm::resolveTypes(RecTy *T1, RecTy *T2) {
|
||||
++i) {
|
||||
RecordRecTy *SuperRecTy2 = RecordRecTy::get(*i);
|
||||
RecTy *NewType2 = resolveTypes(T1, SuperRecTy2);
|
||||
if (NewType2) {
|
||||
if (NewType2 != SuperRecTy2) {
|
||||
delete SuperRecTy2;
|
||||
}
|
||||
if (NewType2)
|
||||
return NewType2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user