about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-04-10 16:15:23 +0200
committerGitHub <noreply@github.com>2024-04-10 16:15:23 +0200
commit2b4c581ef91c5bfe8fdcdf95a1e64b715416fcf3 (patch)
treec7ef0421c6e0f47d1836bb61768366783b897b8d /compiler/rustc_codegen_gcc
parent38af5f9ee8fe422fa8305c052e43c13dff844539 (diff)
parent1cbe92716f0f0f9f15ff890773fad5ffcf534311 (diff)
downloadrust-2b4c581ef91c5bfe8fdcdf95a1e64b715416fcf3.tar.gz
rust-2b4c581ef91c5bfe8fdcdf95a1e64b715416fcf3.zip
Rollup merge of #123659 - celinval:smir-fix-intrinsic, r=oli-obk
Add support to intrinsics fallback body

Before this fix, the call to `body()` would crash, since `has_body()` would return true, but we would try to retrieve the body of an intrinsic which is not allowed.

Instead, the `Instance::body()` function will now convert an Intrinsic into an Item before retrieving its body.

Note: I also changed how we monomorphize the instance body. Unfortunately, the call still ICE for some shims.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions