From: Dan Gohman Date: Fri, 19 Dec 2008 00:46:20 +0000 (+0000) Subject: Initialize the ImplicitDefed member, to avoid getting stale X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1385758215bb31ba042a3d42e40d28e521616a0c;p=oota-llvm.git Initialize the ImplicitDefed member, to avoid getting stale data from a previous block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61237 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegisterScavenging.cpp b/lib/CodeGen/RegisterScavenging.cpp index 5a4bedc2bee..add639a9671 100644 --- a/lib/CodeGen/RegisterScavenging.cpp +++ b/lib/CodeGen/RegisterScavenging.cpp @@ -112,6 +112,7 @@ void RegScavenger::enterBasicBlock(MachineBasicBlock *mbb) { ScavengeRestore = NULL; CurrDist = 0; DistanceMap.clear(); + ImplicitDefed.reset(); // All registers started out unused. RegsAvailable.set();