Skip to content

Commit

Permalink
Rollup merge of #82213 - est31:slices_for_vecs, r=jyn514
Browse files Browse the repository at this point in the history
Slices for vecs
  • Loading branch information
Dylan-DPC committed Feb 25, 2021
2 parents 6b06e57 + c5b9264 commit 199095a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_codegen_llvm/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 199095a

Please sign in to comment.