Skip to content

Commit 99e2bb7

Browse files
committed
Fix librustc
1 parent d2caea2 commit 99e2bb7

File tree

1 file changed

+4
-5
lines changed
  • src/librustc/middle/trans

1 file changed

+4
-5
lines changed

src/librustc/middle/trans/asm.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,14 @@ pub fn trans_inline_asm<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, ia: &ast::InlineAsm)
162162
// Default per-arch clobbers
163163
// Basically what clang does
164164

165-
#[cfg(target_arch = "arm")]
166-
#[cfg(target_arch = "mips")]
167-
#[cfg(target_arch = "mipsel")]
165+
#[cfg(any(target_arch = "arm",
166+
target_arch = "mips",
167+
target_arch = "mipsel"))]
168168
fn get_clobbers() -> String {
169169
"".to_string()
170170
}
171171

172-
#[cfg(target_arch = "x86")]
173-
#[cfg(target_arch = "x86_64")]
172+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
174173
fn get_clobbers() -> String {
175174
"~{dirflag},~{fpsr},~{flags}".to_string()
176175
}

0 commit comments

Comments
 (0)