about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2020-12-30 12:52:21 -0600
committerGus Caplan <me@gus.host>2021-04-04 11:29:34 -0500
commitda66a31572e0f49981d6b958ecdd95397ecf2d3f (patch)
tree55b595fb8db8356d328dd83999db2dea646829cc /compiler/rustc_codegen_llvm/src/attributes.rs
parent5d04957a4b4714f71d38326fc96a0b0ef6dc5800 (diff)
downloadrust-da66a31572e0f49981d6b958ecdd95397ecf2d3f.tar.gz
rust-da66a31572e0f49981d6b958ecdd95397ecf2d3f.zip
wasm64
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/attributes.rs2
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 64ebe585dd8..531847c7a0e 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,