Skip to content

add_ptr has bad :nothrow effects #57557

@adienes

Description

@adienes

it appears the changes in #53687 caused

julia> Base.infer_effects(+, Tuple{Ptr{UInt8}, UInt})
(+c,+e,!n,+t,+s,+m,+u,+o,+r)

I'm assuming this is a bug as I don't know how that call could throw --- and it does not match the effects on previous versions.

adding @_nothrow_meta to +(x::Ptr, y::Integer) and -(x::Ptr, y::Integer) should fix the symptom for +, but I'm assuming it'd be desirable to fix the intrinsic as well

Metadata

Metadata

Assignees

Labels

backport 1.12Change should be backported to release-1.12compiler:effectseffect analysisregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions