Skip to content

Commit 65b1c6e

Browse files
committed
comments
1 parent 11ae495 commit 65b1c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6580,8 +6580,8 @@ 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 = ToolChains[Target.str() + "/" + AuxTarget.str()];
6584+
std::unique_ptr<ToolChain> &HostTC = ToolChains[AuxTarget.str()];
65856585

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

0 commit comments

Comments
 (0)