about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-05 19:43:46 +0200
committerGitHub <noreply@github.com>2024-09-05 19:43:46 +0200
commit3daa015f825034c47f61d94eef7fbfe8837bfd0b (patch)
tree49492ddcee15589dec37fa2425b74872cb9304f4 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent46f390f047309c943a7b773ae1f4c225a8d65907 (diff)
parent49e3b9a2d2cf9bfbc5ada8e3d5dba8dee507dace (diff)
downloadrust-3daa015f825034c47f61d94eef7fbfe8837bfd0b.tar.gz
rust-3daa015f825034c47f61d94eef7fbfe8837bfd0b.zip
Rollup merge of #129472 - folkertdev:const-refs-to-static-asm-const, r=lcnr
fix ICE when `asm_const` and `const_refs_to_static` are combined

fixes https://github.com/rust-lang/rust/issues/129462
fixes #126896
fixes #124164

I think this is a case that was missed in the fix for https://github.com/rust-lang/rust/pull/125558, which inserts a type error in the case of an invalid (that is, non-integer) type being passed to an asm `const` operand.

I'm not 100% sure that `span_mirbug_and_err` is the right macro here, but it is used earlier with `builtin_deref` and seems to do the trick.

r? ``@lcnr``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions