Add a missing 'break' to ensure that we reject inline assembly

constraints we don't recognize.

llvm-svn: 162064
This commit is contained in:
Eric Christopher 2012-08-16 23:50:41 +00:00
parent ae6b9d2de3
commit 9e49188a01
2 changed files with 8 additions and 1 deletions

View File

@ -3085,7 +3085,7 @@ public:
TargetInfo::ConstraintInfo &Info) const {
// FIXME: Check if this is complete
switch (*Name) {
default:
default: break;
case 'l': // r0-r7
case 'h': // r8-r15
case 'w': // VFP Floating point register single precision

View File

@ -0,0 +1,7 @@
// RUN: %clang_cc1 %s -triple armv7-apple-darwin -verify -fsyntax-only
void f (void) {
int Val;
asm volatile ("lw (r1), %0[val]": "=&b"(Val)); // expected-error {{invalid output constraint '=&b' in asm}}
return;
}