commit | 5e50475adb8a862c3f2bff56cfb868389ac518b9 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Nov 21 17:26:58 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Nov 21 17:26:58 2002 +0000 |
tree | 4c3729065e2531826ffe46901ed3ec35071d4c8d | |
parent | 3d8fc7fc85b8423b21059a1c9dd6b8dcd2a3db81 [diff] [blame] |
Fix a bug that prevented compilation of multiple functions llvm-svn: 4809
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index c3da2fe..7f163b8 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -44,6 +44,7 @@ F = &MachineFunction::construct(&Fn, TM); visit(Fn); RegMap.clear(); + CurReg = MRegisterInfo::FirstVirtualRegister; F = 0; return false; // We never modify the LLVM itself. }