is_closure_like
This commit is contained in:
parent
899c895ba4
commit
cb024ba6e3
17 changed files with 40 additions and 37 deletions
|
@ -479,7 +479,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_or_coroutine(instance.def_id()) {
|
||||
if !cx.tcx.is_closure_like(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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue