diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-06-03 23:57:13 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-06-03 23:57:13 +0000 |
commit | 221a8908e4521de533bace49566b5281df9b1924 (patch) | |
tree | ec2cf5b75c4f01af17444e06b21ed4616b98140f /test | |
parent | 048eeea6852043990c87e52938b53b5337bd098e (diff) | |
download | clang-221a8908e4521de533bace49566b5281df9b1924.tar.gz |
Do not report -Wasm-operand-widths for ARM output operands. <rdar://14050337>
We're getting reports of this warning getting triggered in cases where it
is not adding any value. There is no asm operand modifier that you can use
to silence it, and there's really nothing wrong with having an LDRB, for
example, with a "char" output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/arm-asm-warn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGen/arm-asm-warn.c b/test/CodeGen/arm-asm-warn.c index 9b52dd695a..dbcbb38a74 100644 --- a/test/CodeGen/arm-asm-warn.c +++ b/test/CodeGen/arm-asm-warn.c @@ -12,6 +12,7 @@ void t1(int x, char y) { : "+r" (x), "+r" (y) :); + __asm__ volatile("ldrb %0, [%1]" : "=r" (y) : "r" (x)); // no warning } // <rdar://problem/12284092> |