[clang] Fix lld link issue for OHOS (PR #118192)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 7 12:51:39 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 6568ceb9fa1c49383b2fa102a04fd8fd3af01491 206f8f800df7e51648ec00b110f2437dca5a3ff6 --extensions cpp -- clang/lib/Driver/ToolChains/OHOS.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/OHOS.cpp b/clang/lib/Driver/ToolChains/OHOS.cpp
index 723c891d2a..c9a532771b 100644
--- a/clang/lib/Driver/ToolChains/OHOS.cpp
+++ b/clang/lib/Driver/ToolChains/OHOS.cpp
@@ -344,11 +344,11 @@ std::string OHOS::getCompilerRT(const ArgList &Args, StringRef Component,
   llvm::sys::path::append(Path, "lib", getMultiarchTriple(getTriple()),
                           SelectedMultilib.gccSuffix(), CRTBasename);
   if (getVFS().exists(Path))
-      return std::string(Path);
+    return std::string(Path);
 
   std::string NewPath = ToolChain::getCompilerRT(Args, Component, Type);
   if (getVFS().exists(NewPath))
-      return NewPath;
+    return NewPath;
 
   return std::string(Path);
 }

``````````

</details>


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


More information about the cfe-commits mailing list