[all-commits] [llvm/llvm-project] 4acc02: [IR] Fixed ambiguous call to llvm::report_fatal_error

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Sat Jul 23 07:28:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4acc02357e58b1299f0d7d7d734dfb7075df87da
      https://github.com/llvm/llvm-project/commit/4acc02357e58b1299f0d7d7d734dfb7075df87da
  Author: Dmitry Vassiliev <dvassiliev at accesssoftek.com>
  Date:   2022-07-23 (Sat, 23 Jul 2022)

  Changed paths:
    M llvm/lib/IR/GCStrategy.cpp

  Log Message:
  -----------
  [IR] Fixed ambiguous call to llvm::report_fatal_error

This patch fixes the following error with MSVC 16.9.2:
llvm/lib/IR/GCStrategy.cpp(35): error C2668: 'llvm::report_fatal_error': ambiguous call to overloaded function
llvm/include/llvm/Support/ErrorHandling.h(75): note: could be 'void llvm::report_fatal_error(const llvm::Twine &,bool)'
llvm/include/llvm/Support/ErrorHandling.h(73): note: or 'void llvm::report_fatal_error(llvm::StringRef,bool)'
llvm/lib/IR/GCStrategy.cpp(35): note: while trying to match the argument list '(const std::string)'

Reviewed By: RKSimon, barannikov88

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




More information about the All-commits mailing list