[clang] Clean Code. NFC (PR #191403)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 04:50:50 PDT 2026
https://github.com/hstk30-hw created https://github.com/llvm/llvm-project/pull/191403
None
>From dce20ff8c1c76ec3e1fd1c7e600e849e0bea91e6 Mon Sep 17 00:00:00 2001
From: hstk30-hw <hanwei62 at huawei.com>
Date: Fri, 10 Apr 2026 19:49:57 +0800
Subject: [PATCH] Clean Code. NFC
---
clang/lib/Driver/Driver.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
More information about the cfe-commits
mailing list