diff options
| author | AliƩnore Bouttefeux <77335613+ABouttefeux@users.noreply.github.com> | 2021-04-05 21:13:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 21:13:29 +0200 |
| commit | b08b4848c3653818b47fa8cc0a613455c8b4d255 (patch) | |
| tree | a9162fd1698833dc8cf9ef55af102be906df22d5 /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 72f534aae1c6cca58b97957d6c225885fcdb4d1b (diff) | |
| parent | 5a7a0ac51eefbdacc5b1763f8d49a787407afb34 (diff) | |
Merge branch 'master' into master
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 594d42c9366..6e1d4eba842 100644 --- a/compiler/rustc_codegen_llvm/src/attributes.rs +++ b/compiler/rustc_codegen_llvm/src/attributes.rs @@ -317,7 +317,7 @@ pub fn from_fn_attrs(cx: &CodegenCx<'ll, 'tcx>, llfn: &'ll Value, instance: ty:: // Note that currently the `wasm-import-module` doesn't do anything, but // eventually LLVM 7 should read this and ferry the appropriate import // module to the output file. - if cx.tcx.sess.target.arch == "wasm32" { + if cx.tcx.sess.target.is_like_wasm { if let Some(module) = wasm_import_module(cx.tcx, instance.def_id()) { llvm::AddFunctionAttrStringValue( llfn, |
