aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePipeliner.cpp
diff options
context:
space:
mode:
authorYuta Mukai <mukai.yuta@fujitsu.com>2024-02-22 09:17:10 +0900
committerGitHub <noreply@github.com>2024-02-22 09:17:10 +0900
commit9ea9e93f4a74b363887b773397bcb134062270d9 (patch)
treea3609438b3c1ad29e2e911c6d40301cdc0a9a2a1 /llvm/lib/CodeGen/MachinePipeliner.cpp
parent699c408c88b3ed02f25464aa868bd48454fbba3f (diff)
downloadllvm-9ea9e93f4a74b363887b773397bcb134062270d9.zip
llvm-9ea9e93f4a74b363887b773397bcb134062270d9.tar.gz
llvm-9ea9e93f4a74b363887b773397bcb134062270d9.tar.bz2
[MachinePipeliner] Fix elements being added while the list is iterated (#80805)
There is no need to add the elements of Objs twice, so the addition is removed.
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachinePipeliner.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp
index 697e0da..1bda19b 100644
--- a/llvm/lib/CodeGen/MachinePipeliner.cpp
+++ b/llvm/lib/CodeGen/MachinePipeliner.cpp
@@ -768,7 +768,6 @@ static void getUnderlyingObjects(const MachineInstr *MI,
Objs.clear();
return;
}
- Objs.push_back(V);
}
}