[clang] 375d934 - [PS4] Fix a buggy cast

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 6 12:29:20 PDT 2022


Author: Paul Robinson
Date: 2022-04-06T12:28:50-07:00
New Revision: 375d93465b3e6f342e0554cfaee308a45a523969

URL: https://github.com/llvm/llvm-project/commit/375d93465b3e6f342e0554cfaee308a45a523969
DIFF: https://github.com/llvm/llvm-project/commit/375d93465b3e6f342e0554cfaee308a45a523969.diff

LOG: [PS4] Fix a buggy cast

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/PS4CPU.cpp b/clang/lib/Driver/ToolChains/PS4CPU.cpp
index c73edf1adac2e..5aab0a6d1bf87 100644
--- a/clang/lib/Driver/ToolChains/PS4CPU.cpp
+++ b/clang/lib/Driver/ToolChains/PS4CPU.cpp
@@ -94,8 +94,8 @@ void tools::PS4cpu::Link::ConstructJob(Compilation &C, const JobAction &JA,
                                        const InputInfoList &Inputs,
                                        const ArgList &Args,
                                        const char *LinkingOutput) const {
-  const toolchains::FreeBSD &ToolChain =
-      static_cast<const toolchains::FreeBSD &>(getToolChain());
+  const toolchains::PS4CPU &ToolChain =
+      static_cast<const toolchains::PS4CPU &>(getToolChain());
   const Driver &D = ToolChain.getDriver();
   ArgStringList CmdArgs;
 


        


More information about the cfe-commits mailing list