[all-commits] [llvm/llvm-project] 830b35: [clang] Return std::unique_ptr<TargetInfo> from Al...
Stoorx via All-commits
all-commits at lists.llvm.org
Tue Apr 18 03:07:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 830b359d3ab1f96875582bf687f4542df0d3527a
https://github.com/llvm/llvm-project/commit/830b359d3ab1f96875582bf687f4542df0d3527a
Author: Stoorx <me at stoorx.one>
Date: 2023-04-18 (Tue, 18 Apr 2023)
Changed paths:
M clang/lib/Basic/Targets.cpp
M clang/lib/Basic/Targets.h
M clang/lib/Basic/Targets/NVPTX.cpp
M clang/lib/Basic/Targets/SPIR.h
Log Message:
-----------
[clang] Return std::unique_ptr<TargetInfo> from AllocateTarget
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.
Reviewed By: DavidSpickett
Differential Revision: https://reviews.llvm.org/D148574
More information about the All-commits
mailing list