about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-07-03 11:17:23 -0400
committerRalf Jung <post@ralfj.de>2022-07-09 07:27:29 -0400
commita422b421597202554a76bee32d07b54a15631681 (patch)
tree06663bbc6dce4605f70148a3ce23eccead4e7b5a /compiler/rustc_codegen_gcc
parentc4693bc946729393c087fb120af566395915d19d (diff)
downloadrust-a422b421597202554a76bee32d07b54a15631681.tar.gz
rust-a422b421597202554a76bee32d07b54a15631681.zip
don't allow ZST in ScalarInt
There are several indications that we should not ZST as a ScalarInt:
- We had two ways to have ZST valtrees, either an empty `Branch` or a `Leaf` with a ZST in it.
  `ValTree::zst()` used the former, but the latter could possibly arise as well.
- Likewise, the interpreter had `Immediate::Uninit` and `Immediate::Scalar(Scalar::ZST)`.
- LLVM codegen already had to special-case ZST ScalarInt.

So instead add new ZST variants to those types that did not have other variants
which could be used for this purpose.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions