Skip to content

Commit 199095a

Browse files
authored
Rollup merge of #82213 - est31:slices_for_vecs, r=jyn514
Slices for vecs
2 parents 6b06e57 + c5b9264 commit 199095a

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+3
-3
lines changed

compiler/rustc_codegen_llvm/src/asm.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ impl AsmBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
6161
// Default per-arch clobbers
6262
// Basically what clang does
6363
let arch_clobbers = match &self.sess().target.arch[..] {
64-
"x86" | "x86_64" => vec!["~{dirflag}", "~{fpsr}", "~{flags}"],
65-
"mips" | "mips64" => vec!["~{$1}"],
66-
_ => Vec::new(),
64+
"x86" | "x86_64" => &["~{dirflag}", "~{fpsr}", "~{flags}"][..],
65+
"mips" | "mips64" => &["~{$1}"],
66+
_ => &[],
6767
};
6868

6969
let all_constraints = ia

0 commit comments

Comments
 (0)