We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6894d95 commit 3648ddeCopy full SHA for 3648dde
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -5649,7 +5649,7 @@ outliner::OutlinedFunction ARMBaseInstrInfo::getOutliningCandidateInfo(
5649
C.setCallInfo(CallID, NumBytesForCall);
5650
};
5651
5652
- OutlinerCosts *Costs = new OutlinerCosts(Subtarget);
+ auto Costs = std::make_unique<OutlinerCosts>(Subtarget);
5653
unsigned FrameID = 0;
5654
unsigned NumBytesToCreateFrame = 0;
5655
@@ -5668,7 +5668,6 @@ outliner::OutlinedFunction ARMBaseInstrInfo::getOutliningCandidateInfo(
5668
} else
5669
return outliner::OutlinedFunction();
5670
5671
- delete Costs;
5672
return outliner::OutlinedFunction(RepeatedSequenceLocs, SequenceSize,
5673
NumBytesToCreateFrame, FrameID);
5674
}
0 commit comments