summaryrefslogtreecommitdiff
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 d6f7c0d7cf0f..a89c823416c5 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;
}