[clang] clang: Remove use of auto which may have been a triple copy (PR #201880)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 5 09:21:10 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
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
More information about the cfe-commits
mailing list