[flang-commits] [flang] [NFC][Flang] Prefer triple overloads of lookupTarget (PR #162186)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 6 15:43:38 PDT 2025


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 origin/main HEAD --extensions cpp -- flang/lib/Frontend/CompilerInstance.cpp flang/tools/bbc/bbc.cpp flang/tools/flang-driver/fc1_main.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/flang/tools/flang-driver/fc1_main.cpp b/flang/tools/flang-driver/fc1_main.cpp
index b5bbb0b86..a8ad38b01 100644
--- a/flang/tools/flang-driver/fc1_main.cpp
+++ b/flang/tools/flang-driver/fc1_main.cpp
@@ -46,8 +46,8 @@ static int printSupportedCPUs(llvm::StringRef triple) {
   // the target machine will handle the mcpu printing
   llvm::TargetOptions targetOpts;
   std::unique_ptr<llvm::TargetMachine> targetMachine(
-      target->createTargetMachine(parsedTriple, "", "+cpuhelp",
-                                  targetOpts, std::nullopt));
+      target->createTargetMachine(parsedTriple, "", "+cpuhelp", targetOpts,
+                                  std::nullopt));
   return 0;
 }
 

``````````

</details>


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


More information about the flang-commits mailing list