mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 12:53:14 +01:00
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)
This commit is contained in:
@@ -395,7 +395,7 @@ assert(0);
|
||||
|
||||
// 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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user