[llvm-commits] [llvm-gcc-4.0] r43456 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Mon Oct 29 11:22:06 PDT 2007
Author: johannes
Date: Mon Oct 29 13:22:05 2007
New Revision: 43456
URL: http://llvm.org/viewvc/llvm-project?rev=43456&view=rev
Log:
Fix bug in 43378.
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp?rev=43456&r1=43455&r2=43456&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp Mon Oct 29 13:22:05 2007
@@ -3977,11 +3977,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