[all-commits] [llvm/llvm-project] 1c604a: Recognize setjmp and friends as builtins even if j...

Richard Smith via All-commits all-commits at lists.llvm.org
Tue Sep 29 15:53:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c604a9f5fd65c91f097c856fa6643373fc869e1
      https://github.com/llvm/llvm-project/commit/1c604a9f5fd65c91f097c856fa6643373fc869e1
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M clang/include/clang/Basic/Builtins.def
    M clang/include/clang/Basic/Builtins.h
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/CodeGen/setjmp.c
    M clang/test/Sema/builtin-setjmp.c
    M clang/test/Sema/implicit-builtin-decl.c

  Log Message:
  -----------
  Recognize setjmp and friends as builtins even if jmp_buf is not declared yet.

This happens in glibc's headers. It's important that we recognize these
functions so that we can mark them as returns_twice.

Differential Revision: https://reviews.llvm.org/D88518




More information about the All-commits mailing list