From caddd590f72376aaac531c1004be0535b460992a Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 6 Mar 2007 21:58:15 +0000 Subject: [PATCH] Minor bug fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34985 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegisterScavenging.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index 6197430b39f..d73dd3d757e 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/lib/CodeGen/RegisterScavenging.cpp @@ -50,6 +50,8 @@ void RegScavenger::enterBasicBlock(MachineBasicBlock *mbb) { } MBB = mbb; + ScavengedReg = 0; + ScavengedRC = NULL; // All registers started out unused. RegStates.set(); -- 2.34.1