forked from OSchip/llvm-project
Add a missing 'break' to ensure that we reject inline assembly
constraints we don't recognize. llvm-svn: 162064
This commit is contained in:
parent
ae6b9d2de3
commit
9e49188a01
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue