about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2021-09-30 18:05:26 -0700
committerGitHub <noreply@github.com>2021-09-30 18:05:26 -0700
commit46614649619fd7e195fa5b5cabb769bdd10c6077 (patch)
treedf34a50a2be232959940c8c3f4bc8cd50ca5d17e /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentfbc67b59a12adc84642989e6f736cdfd2737a47c (diff)
parent268bb46db29299d8946cafdc70d8c1eaf2756106 (diff)
downloadrust-46614649619fd7e195fa5b5cabb769bdd10c6077.tar.gz
rust-46614649619fd7e195fa5b5cabb769bdd10c6077.zip
Rollup merge of #89370 - RalfJung:ctfe-aggregate-rvalue, r=oli-obk
CTFE: tweak aggregate rvalue handling

I have not looked at this code in ages... I think Miri does not even hit it, since (most?) aggregate rvalues are lowered somewhere in the MIR pipeline, but CTFE does hit it.

So this adds some extra sanity assertions, and removes a ZST special case -- ZST should only be special cased fairly late (when the actual memory access happens); e.g. `!` is a ZST and we still want `copy_op` to be called for it since it will perform validation (and raise UB, since `!` is never valid).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions