You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We keep the range(i32 ...) when we replace the _chk with memset.inline.p0.i64 which leads to a crash:
Range bit width must match type bit width!
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1) %p, i8 range(i32 0, 250) %0, i64 1, i1 false)
The text was updated successfully, but these errors were encountered:
…ith incompatible type
In a variety of places we change the bitwidth of a parameter but don't
update the attributes.
The issue in this case is from the `range` attribute when inlining
`__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an
`i8`, and if the `i32` had a `range` attr assosiated it will cause an
error.
Fixesllvm#112633
…ith incompatible type (#112649)
In a variety of places we change the bitwidth of a parameter but don't
update the attributes.
The issue in this case is from the `range` attribute when inlining
`__memset_chk`. `optimizeMemSetChk` will replace an `i32` with an
`i8`, and if the `i32` had a `range` attr assosiated it will cause an
error.
Fixes#112633
https://godbolt.org/z/b3M1dj6aj
We keep the
range(i32 ...)
when we replace the_chk
withmemset.inline.p0.i64
which leads to a crash:The text was updated successfully, but these errors were encountered: