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
case 'r': {
switch (Modifier) {
default:
- return isInOut || (isOutput && Size >= 32) ||
- (!isOutput && !isInOut && Size <= 32);
+ return (isInOut || isOutput || Size <= 32);
case 'q':
// A register of size 32 cannot fit a vector type.
return false;
: "+r" (x),
"+r" (y)
:);
+ __asm__ volatile("ldrb %0, [%1]" : "=r" (y) : "r" (x)); // no warning
}
// <rdar://problem/12284092>