[all-commits] [llvm/llvm-project] e244a6: [mlir] Replace report_fatal_error(std::string) use...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Oct 6 04:58:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e244a6fec7c9724bca31a49fec34400c1e4dc417
      https://github.com/llvm/llvm-project/commit/e244a6fec7c9724bca31a49fec34400c1e4dc417
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M mlir/include/mlir/IR/Builders.h
    M mlir/lib/Interfaces/DataLayoutInterfaces.cpp
    M mlir/lib/Reducer/Tester.cpp

  Log Message:
  -----------
  [mlir] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)

As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared.




More information about the All-commits mailing list