[all-commits] [llvm/llvm-project] a5b056: [MSVC] Fix pragma alloc_text failing for C files

Stephen Long via All-commits all-commits at lists.llvm.org
Wed Jun 1 09:40:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5b056fe49a991c65e665468f1a681965f41b137
      https://github.com/llvm/llvm-project/commit/a5b056fe49a991c65e665468f1a681965f41b137
  Author: Stephen Long <steplong at quicinc.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M clang/lib/Sema/SemaAttr.cpp
    A clang/test/Sema/pragma-ms-alloc-text.c
    M clang/test/Sema/pragma-ms-alloc-text.cpp

  Log Message:
  -----------
  [MSVC] Fix pragma alloc_text failing for C files

`isExternCContext()` is returning false for functions in C files

Reviewed By: rnk, aaron.ballman

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




More information about the All-commits mailing list