[llvm] [IR] Require that ptrmask mask matches pointer index size (PR #69343)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 08:35:27 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 dffd93b30b56557a4b98f8b68fec0aa6cc706deb c076cdb685d0117be843b53c9d9bab633462e852 -- llvm/lib/Analysis/ValueTracking.cpp llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/lib/IR/Verifier.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 6c02dba9e3e8..6059baf75832 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -5966,7 +5966,8 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
             &Call);
     Check(DL.getIndexTypeSizeInBits(Ty0) == Ty1->getScalarSizeInBits(),
           "llvm.ptrmask intrinsic second argument bitwidth must match "
-          "pointer index type size of first argument", &Call);
+          "pointer index type size of first argument",
+          &Call);
     break;
   }
   };

``````````

</details>


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


More information about the llvm-commits mailing list