[llvm] [IRMover] Don't consider opaque types isomorphic to other types (PR #138241)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 08:58:57 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 HEAD~1 HEAD --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 a8b8a6f90..ba46a2eb8 100644
--- a/llvm/lib/Linker/IRMover.cpp
+++ b/llvm/lib/Linker/IRMover.cpp
@@ -134,7 +134,7 @@ bool TypeMapTy::tryToEstablishTypeIsomorphism(Type *DstTy, Type *SrcTy) {
   // Recursively check the subelements.
   for (unsigned I = 0, E = SrcTy->getNumContainedTypes(); I != E; ++I)
     if (!tryToEstablishTypeIsomorphism(DstTy->getContainedType(I),
-                            SrcTy->getContainedType(I)))
+                                       SrcTy->getContainedType(I)))
       return false;
 
   // If everything seems to have lined up, then everything is great.

``````````

</details>


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


More information about the llvm-commits mailing list