aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/InitUndef.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2024-10-08 12:29:50 +0000
committerDimitry Andric <dim@FreeBSD.org>2024-10-08 15:42:50 +0000
commit0370629593a68f2e04a9710d201d120a2ce437d4 (patch)
tree234deb3bdc0d79aec71583f92d7b920e3abd0333 /llvm/lib/CodeGen/InitUndef.cpp
parent1de139fdd502e836552eba1049a42b45514d8f7b (diff)
Vendor import of llvm-project branch release/19.x llvmorg-19.1.1-0-gd401987fe349, a.k.a. 19.1.1 release.vendor/llvm-project/llvmorg-19.1.1-0-gd401987fe349
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;
}