diff options
author | Pedro Lobo <pedro.lobo@tecnico.ulisboa.pt> | 2025-01-16 09:05:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-16 10:05:30 +0100 |
commit | d89751240206dafcbc138829d9d7aad137aa2e04 (patch) | |
tree | 8c617a3a71c35b80410495b354c4d45eb40a066d /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
parent | 8fb29ba287d72392bd7900c33d2a8d2149126dbe (diff) | |
download | llvm-d89751240206dafcbc138829d9d7aad137aa2e04.zip llvm-d89751240206dafcbc138829d9d7aad137aa2e04.tar.gz llvm-d89751240206dafcbc138829d9d7aad137aa2e04.tar.bz2 |
[ValueTracking] Return `poison` for zero-sized types (#122647)
Return `poison` for zero-sized types in `isBitwiseValue`.
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/ValueTrackingTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/Analysis/ValueTrackingTest.cpp b/llvm/unittests/Analysis/ValueTrackingTest.cpp index 0145ee7..ee44aac 100644 --- a/llvm/unittests/Analysis/ValueTrackingTest.cpp +++ b/llvm/unittests/Analysis/ValueTrackingTest.cpp @@ -2869,7 +2869,7 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = { "ptr inttoptr (i96 -1 to ptr)", }, { - "i8 undef", + "i8 poison", "[0 x i8] zeroinitializer", }, { @@ -2877,7 +2877,7 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = { "[0 x i8] undef", }, { - "i8 undef", + "i8 poison", "[5 x [0 x i8]] zeroinitializer", }, { @@ -2959,7 +2959,7 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = { "[2 x i16] [i16 -21836, i16 -21846]]", }, { - "i8 undef", + "i8 poison", "{ } zeroinitializer", }, { @@ -2967,7 +2967,7 @@ const std::pair<const char *, const char *> IsBytewiseValueTests[] = { "{ } undef", }, { - "i8 undef", + "i8 poison", "{ {}, {} } zeroinitializer", }, { |