diff --git a/lib/CodeGen/ExecutionDepsFix.cpp b/lib/CodeGen/ExecutionDepsFix.cpp index 994a5c36e7c..5a75fde2d6d 100644 --- a/lib/CodeGen/ExecutionDepsFix.cpp +++ b/lib/CodeGen/ExecutionDepsFix.cpp @@ -525,12 +525,10 @@ bool ExeDepsFix::runOnMachineFunction(MachineFunction &mf) { if (FI == LiveOuts.end()) continue; assert(FI->second && "Null entry"); - // The DomainValue is collapsed when the last reference is killed. - LiveRegs = FI->second; for (unsigned i = 0, e = NumRegs; i != e; ++i) - if (LiveRegs[i]) - kill(i); - delete[] LiveRegs; + if (FI->second[i]) + release(FI->second[i]); + delete[] FI->second; } LiveOuts.clear(); Avail.clear();