4 ms·
So I've been bitten by this twice already, including just today. 1. This was the last bug preventing us from booting a MIPS Linux kernel. 2. An out of tree Med
by ndesaulniers 7y ago
So I've been bitten by this twice already, including just today.
1. This was the last bug preventing us from booting a MIPS Linux kernel.
2. An out of tree MediaTek display driver in Android was causing a kernel panic.
To be clear, this is explicitly undefined behavior in C. But this optimization to me feels like semantics from C bleeding into LLVM IR a little.
- account42 7y agoIt's hardly C semantics that const memory should not ever be written to, otherwise there would be no need for the distinction at the LLVM ir level.