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 | 1710d59553e98d6c0d604a541d9119eb14dc49fc (patch) | |
| tree | 13586408287d174a0783c780dfe5986661d60800 /clang/lib/Basic/Targets.cpp | |
| parent | 688d668e5c18607cbf1832402e0435f1e886f5e4 (diff) | |
| download | bcm5719-llvm-1710d59553e98d6c0d604a541d9119eb14dc49fc.tar.gz bcm5719-llvm-1710d59553e98d6c0d604a541d9119eb14dc49fc.zip | |
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.
llvm-svn: 183172
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 496893885c6..baf83c1a14c 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -3897,8 +3897,7 @@ public: 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; |

