about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-25 14:33:58 +0100
committerGitHub <noreply@github.com>2021-02-25 14:33:58 +0100
commit199095afc69e208de659aceb9269bfa2940d074d (patch)
tree79686cd032726a5554341d677187c66614c78000 /compiler/rustc_codegen_llvm/src
parent6b06e57f5f5403d97a317d4daa8c3adf8c84e0a8 (diff)
parentc5b92649291d43a93ccd11f61557d7ae77651512 (diff)
downloadrust-199095afc69e208de659aceb9269bfa2940d074d.tar.gz
rust-199095afc69e208de659aceb9269bfa2940d074d.zip
Rollup merge of #82213 - est31:slices_for_vecs, r=jyn514
Slices for vecs
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/asm.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/asm.rs b/compiler/rustc_codegen_llvm/src/asm.rs
index 4aa25aae747..26815de403f 100644
--- a/compiler/rustc_codegen_llvm/src/asm.rs
+++ b/compiler/rustc_codegen_llvm/src/asm.rs
@@ -61,9 +61,9 @@ impl AsmBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
         // Default per-arch clobbers
         // Basically what clang does
         let arch_clobbers = match &self.sess().target.arch[..] {
-            "x86" | "x86_64" => vec!["~{dirflag}", "~{fpsr}", "~{flags}"],
-            "mips" | "mips64" => vec!["~{$1}"],
-            _ => Vec::new(),
+            "x86" | "x86_64" => &["~{dirflag}", "~{fpsr}", "~{flags}"][..],
+            "mips" | "mips64" => &["~{$1}"],
+            _ => &[],
         };
 
         let all_constraints = ia