aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-12-02 00:35:46 +0000
committerTed Kremenek <kremenek@apple.com>2011-12-02 00:35:46 +0000
commit7f422287a2ee7e515beb715f1f8915e9331469ee (patch)
treeddf182eb74d17de2394727bda64790d0dc553184 /include/clang/Basic
parent4bb6686274c292669bac9e658b3c210a317ee61a (diff)
Diagnose use of wide string literal in 'asm' instead of crashing. Fixes <rdar://problem/10465079>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticParseKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td
index e0b10fa87c..7d8f21394c 100644
--- a/include/clang/Basic/DiagnosticParseKinds.td
+++ b/include/clang/Basic/DiagnosticParseKinds.td
@@ -191,6 +191,8 @@ def err_label_end_of_compound_statement : Error<
def err_address_of_label_outside_fn : Error<
"use of address-of-label extension outside of a function body">;
def err_expected_string_literal : Error<"expected string literal">;
+def err_asm_operand_wide_string_literal : Error<
+ "cannot use wide string literal in 'asm'">;
def err_expected_asm_operand : Error<
"expected string literal or '[' for asm operand">, CatInlineAsm;
def err_expected_selector_for_method : Error<