The NonZero types don't tell LLVM that they're non-zero on get · Issue #49572 · rust-lang/rust

Repro: https://play.rust-lang.org/?gist=0981601dda9c5800e353e31b22682bb5&version=nightly&mode=release pub fn foo(x: std::num::NonZeroU32) -> bool { x.get() != 0 } Actual: %0 = icmp ne i32 %x, 0 ret...