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
Loading
Please sign in to comment