From 1385758215bb31ba042a3d42e40d28e521616a0c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 19 Dec 2008 00:46:20 +0000 Subject: [PATCH] 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 --- lib/CodeGen/RegisterScavenging.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.34.1