mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-05 04:38:37 +00:00
Sema: Relax parsing of '#' in constraints
llvm-svn: 225942
This commit is contained in:
parent
ca24b1d638
commit
b5d2d45c5c
@ -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.
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user