From 850cfd8cca080912c5a62db2170cb7373486dfe9 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 24 Jan 2023 15:55:55 +0100 Subject: [PATCH] Add a test for #34459. --- test/compiler/codegen.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/compiler/codegen.jl b/test/compiler/codegen.jl index 6f8c31d6c4015f..2244db0f6fe9c3 100644 --- a/test/compiler/codegen.jl +++ b/test/compiler/codegen.jl @@ -797,3 +797,10 @@ f48085(@nospecialize x...) = length(x) # Make sure that the bounds check is elided in tuple iteration @test !occursin("call void @", get_llvm(iterate, Tuple{NTuple{4, Float64}, Int})) + +# issue #34459 +function f34459(args...) + Base.pointerset(args[1], 1, 1, 1) + return +end +@test !occursin("jl_f_tuple", get_llvm(f34459, Tuple{Ptr{Int}, Type{Int}}, true, false, false))