diff gen/asmstmt.cpp @ 221:68687d8c3e9a trunk

[svn r237] some inline asm output now seems to work, see tangotests/asm2.d
author lindquist
date Fri, 06 Jun 2008 20:51:43 +0200
parents ccc2e6898a78
children 251548c1035d
line wrap: on
line diff
--- a/gen/asmstmt.cpp	Fri Jun 06 20:14:51 2008 +0200
+++ b/gen/asmstmt.cpp	Fri Jun 06 20:51:43 2008 +0200
@@ -257,7 +257,7 @@
     static std::string i_cns = "i";
     static std::string p_cns = "p";
     static std::string m_cns = "m";
-    static std::string mw_cns = "=m";
+    static std::string mw_cns = "=*m";
     static std::string mrw_cns = "+m";
     static std::string memory_name = "memory";
 
@@ -457,7 +457,7 @@
     size_t cn = output_values.size();
     for (size_t i=0; i<cn; ++i)
     {
-        LLValue* val = output_values[i]->getLVal();
+        LLValue* val = output_values[i]->getRVal();
         callargs.push_back(val);
     }