[llvm-commits] [dragonegg] r115782 - /dragonegg/trunk/llvm-convert.cpp

Duncan Sands baldrick at free.fr
Wed Oct 6 05:35:31 PDT 2010


Author: baldrick
Date: Wed Oct  6 07:35:31 2010
New Revision: 115782

URL: http://llvm.org/viewvc/llvm-project?rev=115782&view=rev
Log:
Port commit 108554 (johannes) from llvm-gcc:
"p" constraint is a form of "m", not "r".  PR 5314.

Modified:
    dragonegg/trunk/llvm-convert.cpp

Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=115782&r1=115781&r2=115782&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Wed Oct  6 07:35:31 2010
@@ -3123,12 +3123,11 @@
       continue;
     }
 
-    // Translate 'p' to 'r'.  This is supposed to check for a valid memory
+    // Translate 'p' to 'm'.  This is supposed to check for a valid memory
     // address, but for inline assembly there is no way to know the mode of
-    // the data being addressed.  Assume that a general register is always
-    // a valid address.
+    // the data being addressed.
     if (ConstraintChar == 'p')
-      ConstraintChar = 'r';
+      ConstraintChar = 'm';
 
     // See if this is a regclass constraint.
     unsigned RegClass;





More information about the llvm-commits mailing list