diff options
| author | Celina G. Val <celinval@amazon.com> | 2024-04-05 15:10:17 -0700 |
|---|---|---|
| committer | Celina G. Val <celinval@amazon.com> | 2024-04-08 17:07:29 -0700 |
| commit | 1512d06be9e860d36d55be1a130577c79ec79a39 (patch) | |
| tree | 8a4e89d3e7e6a13afe5d7e6402e147b8ba057c49 /compiler/rustc_codegen_llvm | |
| parent | ea40fa210b87a322d2259852c149ffa212a3a0da (diff) | |
| download | rust-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
