Clear the FunctionLoweringInfo object before doing other things that

don't need it.

llvm-svn: 101262
This commit is contained in:
Dan Gohman 2010-04-14 17:13:16 +00:00
parent ad0b3ea3cc
commit 094fc7b09e
1 changed files with 4 additions and 4 deletions

View File

@ -216,15 +216,15 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
SelectAllBasicBlocks(Fn, *MF, TII);
// Release function-specific state. SDB and CurDAG are already cleared
// at this point.
FuncInfo->clear();
// If the first basic block in the function has live ins that need to be
// copied into vregs, emit the copies into the top of the block before
// emitting the code for the block.
RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII);
// Release function-specific state. SDB and CurDAG are already cleared
// at this point.
FuncInfo->clear();
return true;
}