aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InitUndef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/InitUndef.cpp')
-rw-r--r--llvm/lib/CodeGen/InitUndef.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InitUndef.cpp b/llvm/lib/CodeGen/InitUndef.cpp
index 51c50ff872ef..8f25ede0eb2b 100644
--- a/llvm/lib/CodeGen/InitUndef.cpp
+++ b/llvm/lib/CodeGen/InitUndef.cpp
@@ -272,6 +272,7 @@ bool InitUndef::runOnMachineFunction(MachineFunction &MF) {
for (auto *DeadMI : DeadInsts)
DeadMI->eraseFromParent();
DeadInsts.clear();
+ NewRegs.clear();
return Changed;
}