Handle the 'X' constraint. Fixes <rdar://problem/6504897>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62446 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp
index eb912d5..3ec3551 100644
--- a/lib/Basic/TargetInfo.cpp
+++ b/lib/Basic/TargetInfo.cpp
@@ -178,6 +178,7 @@
info = (ConstraintInfo)(info|CI_AllowsMemory);
break;
case 'g': // general register, memory operand or immediate integer.
+ case 'X': // any operand.
info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister);
break;
}
@@ -263,6 +264,7 @@
info = (ConstraintInfo)(info|CI_AllowsMemory);
break;
case 'g': // general register, memory operand or immediate integer.
+ case 'X': // any operand.
info = (ConstraintInfo)(info|CI_AllowsMemory|CI_AllowsRegister);
break;
}