diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-30 15:19:54 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-30 15:24:15 +0000 |
| commit | 07adee70729a2c88080c97045c7357c498815401 (patch) | |
| tree | 14dcbd0cddfef625a41eeb76b328cca1bfb33261 /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | d59f06fc64844ec2073e5e888f7470989ef25ff9 (diff) | |
| download | rust-07adee70729a2c88080c97045c7357c498815401.tar.gz rust-07adee70729a2c88080c97045c7357c498815401.zip | |
is_coroutine -> is_coroutine_or_closure
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/attributes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs index 3cc33b83434..b3fa7b7cd44 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -481,7 +481,7 @@ pub fn from_fn_attrs<'ll, 'tcx>( // `+multivalue` feature because the purpose of the wasm abi is to match // the WebAssembly specification, which has this feature. This won't be // needed when LLVM enables this `multivalue` feature by default. - if !cx.tcx.is_closure(instance.def_id()) { + if !cx.tcx.is_closure_or_coroutine(instance.def_id()) { let abi = cx.tcx.fn_sig(instance.def_id()).skip_binder().abi(); if abi == Abi::Wasm { function_features.push("+multivalue".to_string()); |
