[llvm-commits] [llvm-gcc-4.2] r43457 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Dale Johannesen dalej at apple.com
Mon Oct 29 11:26:54 PDT 2007


Author: johannes
Date: Mon Oct 29 13:26:54 2007
New Revision: 43457

URL: http://llvm.org/viewvc/llvm-project?rev=43457&view=rev
Log:
Fix bug in 43378.


Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=43457&r1=43456&r2=43457&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Oct 29 13:26:54 2007
@@ -3541,11 +3541,13 @@
         NewConstraint[RegNameLen+2] = '}';
         NewConstraint[RegNameLen+3] = 0;
         SimplifiedConstraint = NewConstraint;
+      } else {
+        // If we can simplify the constraint into something else, do so now.  This
+        // avoids LLVM having to know about all the (redundant) GCC constraints.
+        SimplifiedConstraint = CanonicalizeConstraint(Constraint+1);
       }
     } else {
-      // If we can simplify the constraint into something else, do so now.  This
-      // avoids LLVM having to know about all the (redundant) GCC constraints.
-       SimplifiedConstraint = CanonicalizeConstraint(Constraint+1);
+      SimplifiedConstraint = CanonicalizeConstraint(Constraint+1);
     }
     
     LValue Dest = EmitLV(Operand);





More information about the llvm-commits mailing list