Sema: Relax parsing of '#' in constraints

llvm-svn: 225942
This commit is contained in:
David Majnemer 2015-01-14 05:11:09 +00:00
parent ca24b1d638
commit b5d2d45c5c
2 changed files with 1 additions and 5 deletions

View File

@ -489,8 +489,6 @@ bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const {
case '#': // Ignore as constraint.
while (Name[1] && Name[1] != ',')
Name++;
if (Name[1] != ',')
return false;
break;
case '?': // Disparage slightly code.
case '!': // Disparage severely.
@ -637,8 +635,6 @@ bool TargetInfo::validateInputConstraint(ConstraintInfo *OutputConstraints,
case '#': // Ignore as constraint.
while (Name[1] && Name[1] != ',')
Name++;
if (Name[1] != ',')
return false;
break;
case '?': // Disparage slightly code.
case '!': // Disparage severely.

View File

@ -188,7 +188,7 @@ void fn4() {
int l;
__asm__(""
: "=r"(l)
: "#m"(l)); // expected-error {{invalid input constraint '#m' in asm}}
: "m#"(l));
}
void fn5() {