[all-commits] [llvm/llvm-project] 663e47: [OpenCL] Reduce emitting candidate notes for builtins

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Jun 27 01:56:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 663e47a50f50c9ff0da9ba805f804c06645638ed
      https://github.com/llvm/llvm-project/commit/663e47a50f50c9ff0da9ba805f804c06645638ed
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl

  Log Message:
  -----------
  [OpenCL] Reduce emitting candidate notes for builtins

When overload resolution fails, clang emits a note diagnostic for each
candidate.  For OpenCL builtins this often leads to many repeated note
diagnostics with no new information.  Stop emitting such notes.

Update a test that was relying on counting those notes to check how
many builtins are available for certain extension configurations.

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




More information about the All-commits mailing list