[llvm] [WIP-LTO] Print conflicting operands between Src and Dest modules (PR #115104)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 10:55:23 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 cff2199e0f0e54177997ecf9571ba874231cefe4 88c83cdedd395e6a8748deea8ff430c6289b5dcb --extensions cpp -- llvm/lib/Linker/IRMover.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp
index 15346a7e2c..94dc486f95 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -1447,10 +1447,11 @@ Error IRLinker::linkModuleFlagsMetadata() {
       // Emit an error if the values differ.
       if (SrcOp->getOperand(2) != DstOp->getOperand(2))
         return stringErr("linking module flags '" + ID->getString() +
-                 "': IDs have conflicting values: '" + *SrcOp->getOperand(2) +
-                 "' from " + SrcM->getModuleIdentifier() + ", and '" +
-                 *DstOp->getOperand(2) << "' from " 
-                 DstM.getModuleIdentifier());
+                             "': IDs have conflicting values: '" +
+                             *SrcOp->getOperand(2) + "' from " +
+                             SrcM->getModuleIdentifier() + ", and '" +
+                             *DstOp->getOperand(2)
+                         << "' from " DstM.getModuleIdentifier());
       continue;
     }
     case Module::Warning: {

``````````

</details>


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


More information about the llvm-commits mailing list