mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
fix leakage of IfcvtTokens
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58690 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0b53491ef
commit
7ecbfd1157
@ -256,6 +256,10 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||
Tokens.pop_back();
|
||||
BBInfo &BBI = Token->BBI;
|
||||
IfcvtKind Kind = Token->Kind;
|
||||
unsigned NumDups = Token->NumDups;
|
||||
unsigned NumDups2 = Token->NumDups;
|
||||
|
||||
delete Token;
|
||||
|
||||
// If the block has been evicted out of the queue or it has already been
|
||||
// marked dead (due to it being predicated), then skip it.
|
||||
@ -323,7 +327,7 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
||||
DOUT << "Ifcvt (Diamond): BB#" << BBI.BB->getNumber() << " (T:"
|
||||
<< BBI.TrueBB->getNumber() << ",F:"
|
||||
<< BBI.FalseBB->getNumber() << ") ";
|
||||
RetVal = IfConvertDiamond(BBI, Kind, Token->NumDups, Token->NumDups2);
|
||||
RetVal = IfConvertDiamond(BBI, Kind, NumDups, NumDups2);
|
||||
DOUT << (RetVal ? "succeeded!" : "failed!") << "\n";
|
||||
if (RetVal) NumDiamonds++;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user