[all-commits] [llvm/llvm-project] 7fcd9e: [X86] Mark various pointer arguments in builtins a...

wjristow via All-commits all-commits at lists.llvm.org
Thu Dec 19 11:48:31 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fcd9e3f70830a9c4bf631a602c2764180b5c3a8
      https://github.com/llvm/llvm-project/commit/7fcd9e3f70830a9c4bf631a602c2764180b5c3a8
  Author: Warren Ristow <warren_ristow at playstation.sony.com>
  Date:   2019-12-19 (Thu, 19 Dec 2019)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsX86.def
    M clang/lib/Headers/avx512bwintrin.h
    M clang/lib/Headers/avx512fintrin.h
    M clang/lib/Headers/avx512vlbwintrin.h
    M clang/lib/Headers/avx512vlintrin.h
    M clang/lib/Headers/avxintrin.h
    M clang/lib/Headers/emmintrin.h
    M clang/lib/Headers/immintrin.h
    M clang/lib/Headers/mwaitxintrin.h
    M clang/lib/Headers/pmmintrin.h
    M clang/lib/Headers/xmmintrin.h
    M clang/test/Headers/x86-intrinsics-headers-clean.cpp
    M clang/test/Headers/x86intrin-2.c

  Log Message:
  -----------
  [X86] Mark various pointer arguments in builtins as const

Enabling `-Wcast-qual` identified many casts in various system headers
that were dropping the `const` qualifier.  Fixing those missing
qualifiers pointed out that a few of the definitions of the builtins
did not properly identify their arguments as `const` pointers.  This
commit fixes those builtin definitions, and the system header files
so that they no longer drop the qualifier.

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




More information about the All-commits mailing list