# HG changeset patch # User Kaito Tokumori # Date 1389685327 -32400 # Node ID bd668f7467404f99fefe99a3c85f10e6160d75e5 # Parent c0c81d8e222e709253ff162f71dc56656dac22bc add CbCHelper.h diff -r c0c81d8e222e -r bd668f746740 tools/clang/lib/Parse/CbCHelper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/clang/lib/Parse/CbCHelper.h Tue Jan 14 16:42:07 2014 +0900 @@ -0,0 +1,21 @@ +#ifndef _CBC_HELPER_IS_INCLUDED +#define _CBC_HELPER_IS_INCLUDED + +#define __CBC_ENVIRONMENT_NAME "__CbC_environment" +#define __CBC_ENVIRONMENT_LENGTH 17 +#define __CBC_RETURN_NAME "__CbC_return" +#define __CBC_RETURN_LENGTH 12 +#define __JMP_BUF_SIZE "128" +#define __JMP_BUF_SIZE_LENGTH 3 +#define __CBC_BUF_NAME "env_buf" +#define __CBC_BUF_LENGTH 7 +#define __CBC_RETVAL_NAME "retval" +#define __CBC_RETVAL_LENGTH 6 +#define __CBC_STRUCT_NAME "__CbC_env" +#define __CBC_STRUCT_LENGTH 9 +#define __CBC_STRUCT_ENV_NAME "env" +#define __CBC_STRUCT_ENV_LENGTH 3 +#define __CBC_STRUCT_POINTER_NAME "ret_p" +#define __CBC_STRUCT_POINTER_LENGTH 5 + +#endif diff -r c0c81d8e222e -r bd668f746740 tools/clang/lib/Parse/ParseStmt.cpp --- a/tools/clang/lib/Parse/ParseStmt.cpp Mon Jan 13 23:04:29 2014 +0900 +++ b/tools/clang/lib/Parse/ParseStmt.cpp Tue Jan 14 16:42:07 2014 +0900 @@ -1705,7 +1705,7 @@ Stmtsp = &Stmts; gotoRes = ParseStatementOrDeclaration(Stmts, false); - if (gotoRes.get()->getStmtClass() != Stmt::CallExprClass) { // isFunctionCall ? + if (gotoRes.get()->getStmtClass() != Stmt::CallExprClass) { // if it is not function call Diag(TokAfterGoto, diag::err_expected_ident_or_cs); return StmtError(); }