Fix a bug that prevented compilation of multiple functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-21 17:26:58 +00:00
parent 78c1d9037b
commit 94e8ee2282
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ namespace {
F = &MachineFunction::construct(&Fn, TM);
visit(Fn);
RegMap.clear();
CurReg = MRegisterInfo::FirstVirtualRegister;
F = 0;
return false; // We never modify the LLVM itself.
}

View File

@ -44,6 +44,7 @@ namespace {
F = &MachineFunction::construct(&Fn, TM);
visit(Fn);
RegMap.clear();
CurReg = MRegisterInfo::FirstVirtualRegister;
F = 0;
return false; // We never modify the LLVM itself.
}