[all-commits] [llvm/llvm-project] 6b1f9f: [X86] Don't call SemaBuiltinConstantArg from Check...

topperc via All-commits all-commits at lists.llvm.org
Tue Aug 18 12:35:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b1f9f2bd4437910804d571284b7c5bb66eac250
      https://github.com/llvm/llvm-project/commit/6b1f9f2bd4437910804d571284b7c5bb66eac250
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  [X86] Don't call SemaBuiltinConstantArg from CheckX86BuiltinTileDuplicate if Argument is Type or Value Dependent.

SemaBuiltinConstantArg has an early exit for that case that doesn't
produce an error and doesn't update the APInt. We need to detect that
case and not use the APInt value.

While there delete the signature of CheckX86BuiltinTileArgumentsRange
that takes a single Argument index to check. There's another version
that takes an ArrayRef and single value is convertible to an ArrayRef.




More information about the All-commits mailing list