From 5bd4c2ace46501f475a6b59e1edfd94777b9362b Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 21 Aug 2012 18:56:49 +0000 Subject: Use LLVM_BUILTIN_TRAP instead of lame volatile int traps. (from a todo mentioned in r159469 & originally suggested by Chandler Carruth) llvm-svn: 162302 --- clang/lib/Parse/ParseDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Parse/ParseDecl.cpp') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 4129950ea6e..85d3f5a7da7 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -4351,7 +4351,7 @@ void Parser::ParseDirectDeclarator(Declarator &D) { D.SetIdentifier(0, Tok.getLocation()); } else { if (Tok.getKind() == tok::annot_pragma_parser_crash) - *(volatile int*) 0x11 = 0; + LLVM_BUILTIN_TRAP; if (D.getContext() == Declarator::MemberContext) Diag(Tok, diag::err_expected_member_name_or_semi) << D.getDeclSpec().getSourceRange(); -- cgit v1.2.3