Skip to content

Commit 327939f

Browse files
committed
LLVM 21 removed uselist from constants
1 parent 4c11f27 commit 327939f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/core.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,12 @@ end
718718
@check_ir ce "ptr addrspace(1) addrspacecast (ptr null to ptr addrspace(1))"
719719
end
720720
# deletion of a constant
721-
@test !isempty(uses(ptr))
721+
if LLVM.version() < v"21"
722+
@test !isempty(uses(ptr))
723+
else
724+
# LLVM 21+ removed uselist from constants
725+
@test isempty(uses(ptr))
726+
end
722727
LLVM.unsafe_destroy!(ce)
723728
@test isempty(uses(ptr))
724729
end

0 commit comments

Comments
 (0)