[llvm] Revert "Remove unnecessary newline from error message" (PR #120037)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 15 21:19:42 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 9571d2023bee35f7c0e60a931ce5a4074d034635 75a9b1c130c2e94743cfc5fbf2e1a9fd98c5ad81 --extensions cpp -- llvm/lib/MC/TargetRegistry.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/MC/TargetRegistry.cpp b/llvm/lib/MC/TargetRegistry.cpp
index b1c1f93791..6d2d7f18c3 100644
--- a/llvm/lib/MC/TargetRegistry.cpp
+++ b/llvm/lib/MC/TargetRegistry.cpp
@@ -142,9 +142,8 @@ const Target *TargetRegistry::lookupTarget(StringRef ArchName,
std::string TempError;
TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
if (!TheTarget) {
- Error = "unable to get target for '"
- + TheTriple.getTriple()
- + "', see --version and --triple.\n";
+ Error = "unable to get target for '" + TheTriple.getTriple() +
+ "', see --version and --triple.\n";
return nullptr;
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/120037
More information about the llvm-commits
mailing list