Skip to content
Snippets Groups Projects
Commit c97d014a authored by Eli Friedman's avatar Eli Friedman
Browse files

Fix silly mistake that was breaking tests. Sorry for any inconvenience.

llvm-svn: 70664
parent 2c295cfe
No related branches found
No related tags found
No related merge requests found
......@@ -134,9 +134,11 @@ Sema::CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall) {
case Builtin::BI__builtin_object_size:
if (SemaBuiltinObjectSize(TheCall))
return ExprError();
return move(TheCallResult);
case Builtin::BI__builtin_longjmp:
if (SemaBuiltinLongjmp(TheCall))
return ExprError();
return move(TheCallResult);
}
// FIXME: This mechanism should be abstracted to be less fragile and
......@@ -427,7 +429,7 @@ bool Sema::SemaBuiltinObjectSize(CallExpr *TheCall) {
return false;
}
/// SemaBuiltinObjectSize - Handle __builtin_longjmp(void *env[5], int val).
/// SemaBuiltinLongjmp - Handle __builtin_longjmp(void *env[5], int val).
/// This checks that val is a constant 1.
bool Sema::SemaBuiltinLongjmp(CallExpr *TheCall) {
Expr *Arg = TheCall->getArg(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment