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
The text was updated successfully, but these errors were encountered:
matthiaskrgr
added
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
labels
Apr 23, 2023
#![allow(invalid_value)]fnmain(){// The array avoids a `Scalar` layout which detects uninit without even doing validation.let _val = unsafe{ std::mem::MaybeUninit::<[*constu8;0xABCDABCD]>::uninit().assume_init()};//~^ ERROR: uninitialized}
I tried this code:
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose
:If you compile this you will get very interesting output
I could not find any traces of this inside the rust source code, it seems to be coming from llvm directly?! Some leftover debug print maybe?
(llvm git:
llvm/lib/CodeGen/PrologEpilogInserter.cpp:316: dbgs() << formatv("{0}/{1} ({3:P}) spills, {2}/{1} ({4:P}) variables",
)The text was updated successfully, but these errors were encountered: