commit | 94e8ee22820f1e16224efc69d6f39ba207814b1e | [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 | 81df50998c921529deb6857b03385f66edec7f59 | |
parent | 78c1d9037b456b7e093fffa341cc61f2e055b2bc [diff] [blame] |
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
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index c3da2fe..7f163b8 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/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. }