[llvm] [MC] Allocate MCFragment with a bump allocator (PR #96402)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 22 11:50:47 PDT 2024
================
@@ -203,59 +203,57 @@ MCFragment::MCFragment(FragmentType Kind, bool HasInstructions)
void MCFragment::destroy() {
// First check if we are the sentinel.
- if (Kind == FragmentType(~0)) {
----------------
MaskRay wrote:
It looks like the `Kind == FragmentType(~0)` code path is now dead. I'll just delete this condition.
https://github.com/llvm/llvm-project/pull/96402
More information about the llvm-commits
mailing list