[all-commits] [llvm/llvm-project] b5cc22: [MIR] Fix vreg flag vector memory leak (#112479)
Akshat Oke via All-commits
all-commits at lists.llvm.org
Wed Oct 16 02:22:48 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b5cc222d7429fe6f18c787f633d5262fac2e676f
https://github.com/llvm/llvm-project/commit/b5cc222d7429fe6f18c787f633d5262fac2e676f
Author: Akshat Oke <Akshat.Oke at amd.com>
Date: 2024-10-16 (Wed, 16 Oct 2024)
Changed paths:
M llvm/include/llvm/CodeGen/MIRParser/MIParser.h
M llvm/lib/CodeGen/MIRParser/MIRParser.cpp
Log Message:
-----------
[MIR] Fix vreg flag vector memory leak (#112479)
A fix-it patch for dbfca24 #110228.
No need for a container. This allows 8 flags for a register.
The virtual register flags vector had a memory leak because the vector's
memory is not freed.
The `BumpPtrAllocator` handles the deallocation and missed calling the
`std::vector<uint8_t> Flags` destructor.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list