Mercurial > projects > ldc
changeset 978:6a32d2e18175
Fix a latent bug in the asm code.
I think that technically, using "*m0" instead of "*0" allows LLVM to pick
between using the same memory as output 0 and using a new memory location.
(So far I haven't been able to construct a testcase that actually breaks
because of this, though)
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 18 Feb 2009 03:38:12 +0100 |
parents | 3efbe9b0dd36 |
children | 523bf4f166bc |
files | gen/asmstmt.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/asmstmt.cpp Tue Feb 17 23:14:19 2009 +0100 +++ b/gen/asmstmt.cpp Wed Feb 18 03:38:12 2009 +0100 @@ -395,7 +395,7 @@ // Add input operand with same value, with original as "matching output". std::ostringstream ss; - ss << m_cns << (n + asmblock->outputcount); + ss << '*' << (n + asmblock->outputcount); input_constraints.push_front(ss.str()); input_values.push_front(output_values[n]); }