llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang-driver

Author: Matt Arsenault (arsenm)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/201880.diff


1 Files Affected:

- (modified) clang/lib/Driver/Driver.cpp (+2-2) 


``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index be281f7aeb4a4..c2a2cd80b94b2 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -5411,8 +5411,8 @@ Action *Driver::ConstructPhaseAction(
         offloadDeviceOnly() &&
         !Args.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc, false);
 
-    auto &DefaultToolChain = C.getDefaultToolChain();
-    auto DefaultToolChainTriple = DefaultToolChain.getTriple();
+    const ToolChain &DefaultToolChain = C.getDefaultToolChain();
+    const llvm::Triple &DefaultToolChainTriple = DefaultToolChain.getTriple();
     // For regular C/C++ to AMD SPIRV emit bitcode to avoid spirv-link
     // dependency, SPIRVAMDToolChain's linker takes care of the generation of
     // the final SPIRV. The only exception is -S without -emit-llvm to output

``````````

</details>


https://github.com/llvm/llvm-project/pull/201880
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to