[clang] 2da89df - Fix minor bug in CommonArgs.cpp

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 24 05:47:05 PDT 2020


Author: Yaxun (Sam) Liu
Date: 2020-04-24T08:46:33-04:00
New Revision: 2da89df4e8d240160d5f265ecac4b0c6a0705d65

URL: https://github.com/llvm/llvm-project/commit/2da89df4e8d240160d5f265ecac4b0c6a0705d65
DIFF: https://github.com/llvm/llvm-project/commit/2da89df4e8d240160d5f265ecac4b0c6a0705d65.diff

LOG: Fix minor bug in CommonArgs.cpp

Change-Id: Ibe87b1633cc7516479bb08bf51b6860a1585a94f

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/CommonArgs.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 303ced52454c..5219f28565a4 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -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");


        


More information about the cfe-commits mailing list