Skip to content

Commit 7f3a138

Browse files
committed
comments
1 parent 11ae495 commit 7f3a138

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6580,8 +6580,9 @@ std::string Driver::GetClPchPath(Compilation &C, StringRef BaseName) const {
65806580
const ToolChain &Driver::getOffloadToolChain(
65816581
const llvm::opt::ArgList &Args, const Action::OffloadKind Kind,
65826582
const llvm::Triple &Target, const llvm::Triple &AuxTarget) const {
6583-
auto &TC = ToolChains[Target.str() + "/" + AuxTarget.str()];
6584-
auto &HostTC = ToolChains[AuxTarget.str()];
6583+
std::unique_ptr<ToolChain> &TC =
6584+
ToolChains[Target.str() + "/" + AuxTarget.str()];
6585+
std::unique_ptr<ToolChain> &HostTC = ToolChains[AuxTarget.str()];
65856586

65866587
assert(HostTC && "Host toolchain for offloading doesn't exit?");
65876588
if (!TC) {

0 commit comments

Comments
 (0)