[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 21:13:38 PDT 2023


================
@@ -56,7 +56,9 @@ void dragonfly::Linker::ConstructJob(Compilation &C, const JobAction &JA,
                                      const InputInfoList &Inputs,
                                      const ArgList &Args,
                                      const char *LinkingOutput) const {
-  const Driver &D = getToolChain().getDriver();
+  const toolchains::DragonFly &ToolChain =
----------------
MaskRay wrote:

`const auto &` as `static_cast` makes the type clear

https://github.com/llvm/llvm-project/pull/69095


More information about the cfe-commits mailing list