about summary refs log tree commit diff
path: root/compiler/rustc_target/src/abi/call
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2020-11-14 19:16:43 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-11-21 19:22:31 +0100
commit39b8b2b623087fa643daeed424bd2fa79076f463 (patch)
treef95a86e89504bccfa8d75930b5eaa19cf76e3dc2 /compiler/rustc_target/src/abi/call
parent42b0b8080d10b412d51d414a0de0e08959a64f5f (diff)
downloadrust-39b8b2b623087fa643daeed424bd2fa79076f463.tar.gz
rust-39b8b2b623087fa643daeed424bd2fa79076f463.zip
Remove StructRet arg attr
It is applied exactly when the return value has an indirect pass mode.
Except for InReg on x86 fastcall, arg attrs are now only used for
optimization purposes and thus are fine to ignore.
Diffstat (limited to 'compiler/rustc_target/src/abi/call')
-rw-r--r--compiler/rustc_target/src/abi/call/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_target/src/abi/call/mod.rs b/compiler/rustc_target/src/abi/call/mod.rs
index 0931e8a3771..91b004c41d9 100644
--- a/compiler/rustc_target/src/abi/call/mod.rs
+++ b/compiler/rustc_target/src/abi/call/mod.rs
@@ -59,7 +59,6 @@ mod attr_impl {
             const NoCapture = 1 << 2;
             const NonNull   = 1 << 3;
             const ReadOnly  = 1 << 4;
-            const StructRet = 1 << 6;
             const InReg     = 1 << 8;
         }
     }
@@ -619,10 +618,6 @@ impl<'a, Ty> FnAbi<'a, Ty> {
             a => return Err(format!("unrecognized arch \"{}\" in target specification", a)),
         }
 
-        if let PassMode::Indirect { ref mut attrs, extra_attrs: _, on_stack: _ } = self.ret.mode {
-            attrs.set(ArgAttribute::StructRet);
-        }
-
         Ok(())
     }
 }