mirror of https://github.com/microsoft/clang.git
Fix grammar-o.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c01526e39e
commit
681b89826f
|
@ -5144,7 +5144,7 @@ let CategoryName = "Inline Assembly Issue" in {
|
||||||
def warn_asm_label_on_auto_decl : Warning<
|
def warn_asm_label_on_auto_decl : Warning<
|
||||||
"ignored asm label '%0' on automatic variable">;
|
"ignored asm label '%0' on automatic variable">;
|
||||||
def warn_invalid_asm_cast_lvalue : Warning<
|
def warn_invalid_asm_cast_lvalue : Warning<
|
||||||
"invalid use of a cast in a inline asm context requiring an l-value: "
|
"invalid use of a cast in an inline asm context requiring an l-value: "
|
||||||
"accepted due to -fheinous-gnu-extensions, but clang may remove support "
|
"accepted due to -fheinous-gnu-extensions, but clang may remove support "
|
||||||
"for this in the future">;
|
"for this in the future">;
|
||||||
def warn_asm_mismatched_size_modifier : Warning<
|
def warn_asm_mismatched_size_modifier : Warning<
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
void foo() {
|
void foo() {
|
||||||
int a;
|
int a;
|
||||||
// PR3788
|
// PR3788
|
||||||
asm("nop" : : "m"((int)(a))); // expected-warning {{cast in a inline asm context requiring an l-value}}
|
asm("nop" : : "m"((int)(a))); // expected-warning {{cast in an inline asm context requiring an l-value}}
|
||||||
// PR3794
|
// PR3794
|
||||||
asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in a inline asm context requiring an l-value}}
|
asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in an inline asm context requiring an l-value}}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue