Deleted Added
full compact
299a300,303
> case Builtin::BI__builtin_setjmp:
> if (SemaBuiltinSetjmp(TheCall))
> return ExprError();
> break;
2370c2374,2375
< /// This checks that val is a constant 1.
---
> /// This checks that the target supports __builtin_longjmp and
> /// that val is a constant 1.
2371a2377,2380
> if (!Context.getTargetInfo().hasSjLjLowering())
> return Diag(TheCall->getLocStart(), diag::err_builtin_longjmp_unsupported)
> << SourceRange(TheCall->getLocStart(), TheCall->getLocEnd());
>
2385a2395,2404
>
> /// SemaBuiltinSetjmp - Handle __builtin_setjmp(void *env[5]).
> /// This checks that the target supports __builtin_setjmp.
> bool Sema::SemaBuiltinSetjmp(CallExpr *TheCall) {
> if (!Context.getTargetInfo().hasSjLjLowering())
> return Diag(TheCall->getLocStart(), diag::err_builtin_setjmp_unsupported)
> << SourceRange(TheCall->getLocStart(), TheCall->getLocEnd());
> return false;
> }
>