Fix minor bug in CommonArgs.cpp

Change-Id: Ibe87b1633cc7516479bb08bf51b6860a1585a94f
This commit is contained in:
Yaxun (Sam) Liu 2020-04-24 08:46:27 -04:00
parent dffb58eddf
commit 2da89df4e8
1 changed files with 1 additions and 1 deletions

View File

@ -1327,7 +1327,7 @@ void tools::AddHIPLinkerScript(const ToolChain &TC, Compilation &C,
llvm::raw_string_ostream LksStream(LksBuffer);
// Get the HIP offload tool chain.
auto *HIPTC = static_cast<const toolchains::CudaToolChain *>(
auto *HIPTC = static_cast<const toolchains::HIPToolChain *>(
C.getSingleOffloadToolChain<Action::OFK_HIP>());
assert(HIPTC->getTriple().getArch() == llvm::Triple::amdgcn &&
"Wrong platform");