]> git.lizzy.rs Git - rust.git/commit
Properly translate boolean statics to be stored as i8
authorBjörn Steinbrink <bsteinbr@gmail.com>
Wed, 8 Oct 2014 21:20:18 +0000 (23:20 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Thu, 9 Oct 2014 09:09:17 +0000 (11:09 +0200)
commit6fa5a2f66fddd473d265e646b41da43d20e87ec2
tree93bf344c9e2090cbb46a17ee53913f2ae41cd6dd
parent57af34b9ad2a4a5a8932ccb06d022d5f8c5807bc
Properly translate boolean statics to be stored as i8

While booleans are represented as i1 in SSA values, LLVM expects them
to be stored/loaded as i8 values. Using i1 as we do now works, but
kills some optimizations, so we should switch to i8, just like we do
everywhere else.

Fixes #16959.
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/consts.rs