diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-12-29 04:09:59 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-12-29 04:09:59 +0000 |
commit | 90dbab3d83bbfed9108e6f072d9251f8e28825f2 (patch) | |
tree | 7a158021fede4f39334459ff4bd33feed2c0a8e1 /include | |
parent | c1ae02375d3c7cb04ad4e603d7f4afadff4abfbc (diff) |
Sema: Forbid inconsistent constraint alternatives
Verify that asm constraints have the same number of alternatives
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 1e951c8058..69f86b9692 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -6166,6 +6166,8 @@ let CategoryName = "Inline Assembly Issue" in { def err_asm_tying_incompatible_types : Error< "unsupported inline asm: input with type " "%diff{$ matching output with type $|}0,1">; + def err_asm_unexpected_constraint_alternatives : Error< + "asm constraint has an unexpected number of alternatives: %0 vs %1">; def err_asm_incomplete_type : Error<"asm operand has incomplete type %0">; def err_asm_unknown_register_name : Error<"unknown register name '%0' in asm">; def err_asm_bad_register_type : Error<"bad type for named register variable">; |