[all-commits] [llvm/llvm-project] d346eb: [clang] Fix ambiguous use of `report_fatal_error`.

weiyi via All-commits all-commits at lists.llvm.org
Mon Aug 29 08:33:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d346eb7bf08c7780bb80426eabc6b5f81490e9ae
      https://github.com/llvm/llvm-project/commit/d346eb7bf08c7780bb80426eabc6b5f81490e9ae
  Author: Wei Yi Tee <wyt at google.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M clang/lib/Basic/SanitizerSpecialCaseList.cpp

  Log Message:
  -----------
  [clang] Fix ambiguous use of `report_fatal_error`.

`report_fatal_error` is overloaded on `StringRef` and `Twine &`, therefore passing a `std::string` argument leads to ambiguity as it is convertible to either type.

Reviewed By: gribozavr2, sgatev

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




More information about the All-commits mailing list