[clang] Clean Code. NFC (PR #191403)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 04:51:23 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: hstk30-hw

<details>
<summary>Changes</summary>



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


1 Files Affected:

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


``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index e3e4485c73690..8b9b553e9e7f8 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1626,7 +1626,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
   if (const Arg *A = Args.getLastArg(options::OPT_target))
     TargetTriple = A->getValue();
   if (const Arg *A = Args.getLastArg(options::OPT_ccc_install_dir))
-    Dir = Dir = A->getValue();
+    Dir = A->getValue();
   for (const Arg *A : Args.filtered(options::OPT_B)) {
     A->claim();
     PrefixDirs.push_back(A->getValue(0));

``````````

</details>


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


More information about the cfe-commits mailing list