[llvm] [Loads] Fix crash on mixed-address-space pointers in no-AA store check (PR #195256)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 04:30:54 PDT 2026


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 origin/main HEAD --extensions cpp -- llvm/lib/Analysis/Loads.cpp llvm/unittests/Analysis/LoadsTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/unittests/Analysis/LoadsTest.cpp b/llvm/unittests/Analysis/LoadsTest.cpp
index af3ca12b9..e3ee4c885 100644
--- a/llvm/unittests/Analysis/LoadsTest.cpp
+++ b/llvm/unittests/Analysis/LoadsTest.cpp
@@ -67,9 +67,9 @@ entry:
   ASSERT_TRUE(CI->equalsInt(42));
 }
 
-// Test the load and store pointers reach the same base value through different address spaces
-// with different index widths (here AS=0 has 64-bit pointers and AS=5 has
-// 32-bit pointers)
+// Test the load and store pointers reach the same base value through different
+// address spaces with different index widths (here AS=0 has 64-bit pointers and
+// AS=5 has 32-bit pointers)
 TEST(LoadsTest, FindAvailableLoadedValueMixedAddrSpaceNullAA) {
   LLVMContext C;
   std::unique_ptr<Module> M = parseIR(C, R"IR(

``````````

</details>


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


More information about the llvm-commits mailing list