llvm-project
d2db5bba - [CodeGen] Use unique_ptr for FunctionInfo to prevent memory leaks (#196603)

Commit
1 day ago
[CodeGen] Use unique_ptr for FunctionInfo to prevent memory leaks (#196603) Raw pointer return from `FunctionInfo::create` caused leaks in callers like `computeABIInfoUsingLib`, breaking BPF tests on ASan bots. Using `std::unique_ptr` enforces automatic cleanup. Fixes leak from #194460. Buildbot: https://lab.llvm.org/buildbot/#/builders/52/builds/17090 Assisted-by: Gemini
Author
Parents
Loading