Files
clang-p2996/llvm/lib/CodeGen/LLVMTargetMachine.cpp
Wang, Xin10 b00fc5ac99 Fix Mem leak in LLVMTargetMachine.cpp
If we go to line 302, with one of MCE or MAB is not nullptr, then we could
leak mem here.
Use unique_ptr to maintain these 2 pointer can avoid it.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D148003
2023-04-12 05:27:04 -04:00

11 KiB