about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorCelina G. Val <celinval@amazon.com>2024-04-05 15:10:17 -0700
committerCelina G. Val <celinval@amazon.com>2024-04-08 17:07:29 -0700
commit1512d06be9e860d36d55be1a130577c79ec79a39 (patch)
tree8a4e89d3e7e6a13afe5d7e6402e147b8ba057c49 /compiler/rustc_codegen_llvm
parentea40fa210b87a322d2259852c149ffa212a3a0da (diff)
downloadrust-1512d06be9e860d36d55be1a130577c79ec79a39.tar.gz
rust-1512d06be9e860d36d55be1a130577c79ec79a39.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions