[PATCH] D148574: Use the 'std::unique_ptr<TargetInfo>' instead of a raw pointers
Sviatoslav Osipov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 17 14:52:48 PDT 2023
Stoorx created this revision.
Stoorx added a reviewer: DavidSpickett.
Herald added subscribers: mattd, gchakrabarti, asavonic, abrachet, phosek, s.egerton, mstorsjo, simoncook, asb, fedor.sergeev, dschuff.
Herald added a project: All.
Stoorx requested review of this revision.
Herald added subscribers: pcwang-thead, aheejin, jholewinski.
Herald added a project: clang.
In file 'clang/lib/Basic/Targets.cpp' the function 'AllocateTarget' had a raw pointer as a return type, which have been wrapped in the 'std::unique_ptr' in all usages.
This commit changes the signature of the function to return an instance of 'std::unique_ptr' directly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148574
Files:
clang/lib/Basic/Targets.cpp
clang/lib/Basic/Targets.h
clang/lib/Basic/Targets/NVPTX.cpp
clang/lib/Basic/Targets/SPIR.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148574.514417.patch
Type: text/x-patch
Size: 43928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230417/7033d1cc/attachment-0001.bin>
More information about the cfe-commits
mailing list