[Mlir-commits] [mlir] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 2 17:36:01 PDT 2023
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 149346286801a5f32d254676760a7f4211801667 4dc3e74efa5dae42c2ffa408ef5d4a83c4b4754c -- lld/ELF/LinkerScript.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 84658751b304..b1633471b651 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -328,7 +328,7 @@ void LinkerScript::processInsertCommands() {
});
if (insertPos == sectionCommands.end()) {
warn("unable to insert " + cmd.names[0] +
- (cmd.isAfter ? " after " : " before ") + cmd.where);
+ (cmd.isAfter ? " after " : " before ") + cmd.where);
} else {
if (cmd.isAfter)
++insertPos;
``````````
</details>
https://github.com/llvm/llvm-project/pull/68058
More information about the Mlir-commits
mailing list