[llvm] [MC] Allocate MCFragment with a bump allocator (PR #96402)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 22 11:00:05 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)) {
----------------
aengelke wrote:

`~MCFragment();`?

https://github.com/llvm/llvm-project/pull/96402


More information about the llvm-commits mailing list