mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-01 21:03:54 +00:00
Move this assert out of SelectionDAGISel into FunctionLoweringInfo, and
drop the redundant #ifndef NDEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101261 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
046fe6b6ba
commit
0e026729ae
@ -243,6 +243,9 @@ void FunctionLoweringInfo::set(Function &fn, MachineFunction &mf,
|
||||
/// FunctionLoweringInfo to an empty state, ready to be used for a
|
||||
/// different function.
|
||||
void FunctionLoweringInfo::clear() {
|
||||
assert(CatchInfoFound.size() == CatchInfoLost.size() &&
|
||||
"Not all catch info was assigned to a landing pad!");
|
||||
|
||||
MBBMap.clear();
|
||||
ValueMap.clear();
|
||||
StaticAllocaMap.clear();
|
||||
|
@ -221,11 +221,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
// emitting the code for the block.
|
||||
RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII);
|
||||
|
||||
#ifndef NDEBUG
|
||||
assert(FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() &&
|
||||
"Not all catch info was assigned to a landing pad!");
|
||||
#endif
|
||||
|
||||
// Release function-specific state. SDB and CurDAG are already cleared
|
||||
// at this point.
|
||||
FuncInfo->clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user