diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-01-03 22:58:24 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-01-03 22:58:24 +0800 |
commit | 17c5d0e1d12229f6b720708748723811f7f2acd3 (patch) | |
tree | 718ac457bd69255270c027d8505d3d1739e07e82 /src | |
parent | 1c752cfb7f0fced838e9228aecd3908222958465 (diff) | |
download | mrust-17c5d0e1d12229f6b720708748723811f7f2acd3.tar.gz |
Lower MIR - Allow "+" at the start of asm output specifiers
Diffstat (limited to 'src')
-rw-r--r-- | src/mir/from_hir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index bea8a38c..17de43c2 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -544,7 +544,7 @@ namespace { // Outputs can also (sometimes) be rvalues (only for `*m`?) for(auto& v : node.m_outputs) { this->visit_node_ptr(v.value); - if( v.spec[0] != '=' ) + if( v.spec[0] != '=' && v.spec[0] != '+' ) // TODO: what does '+' mean? ERROR(node.span(), E0000, "Assembly output specifiers must start with ="); ::MIR::LValue lv; if(v.spec[1] == '*') |