[PATCH] D131790: [unittests/CodeGen] Remove unique_ptr from the result of createTargetMachine
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 16 10:03:19 PDT 2022
thegameg added inline comments.
================
Comment at: llvm/unittests/CodeGen/MFCommon.inc:120
+BogusTargetMachine *createTargetMachine() {
+ static BogusTargetMachine BogusTM;
+ return &BogusTM;
----------------
If it's only used in one test maybe we can create a local TM instead of a static one and pass it to `createMachineFunction`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131790/new/
https://reviews.llvm.org/D131790
More information about the llvm-commits
mailing list