diff options
| author | bors <bors@rust-lang.org> | 2014-11-30 17:21:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-30 17:21:48 +0000 |
| commit | 3ee471cab5ed17b14484c636c02d95fa1699e76f (patch) | |
| tree | c25d47d9b3f73697072fac3d96e53b37c244c3dc /src/rustllvm/RustWrapper.cpp | |
| parent | 52888a7c47ce409fc80e56430056701d7349d27e (diff) | |
| parent | 133266f01ca6bd1a75cdb0887c3c9f6ea500795f (diff) | |
| download | rust-3ee471cab5ed17b14484c636c02d95fa1699e76f.tar.gz rust-3ee471cab5ed17b14484c636c02d95fa1699e76f.zip | |
auto merge of #19411 : lifthrasiir/rust/asm-clobbers-expanded, r=alexcrichton
I.e. we should not prematurely build operand constraints at the expansion time. Otherwise `--pretty expanded` diverges:
```
$ cat t.rs
#![feature(asm)]
pub fn main() { unsafe { asm!("" : : : "hello", "world") }; }
$ rustc t.rs --pretty
#![feature(asm)]
pub fn main() { unsafe { asm!("" : : : "hello" , "world") }; }
$ rustc t.rs --pretty expanded
#![feature(asm)]
#![feature(phase)]
#![no_std]
#![feature(globs)]
#[phase(plugin, link)]
extern crate "std" as std;
#[prelude_import]
use std::prelude::*;
pub fn main() { unsafe { asm!("": : : "~{hello},~{world}") }; }
```
(The last code *does* compile, but won't do the expected thing.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
