[mlir] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 6 Oct 2021 11:57:04 +0000 (12:57 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 6 Oct 2021 11:57:20 +0000 (12:57 +0100)
commite244a6fec7c9724bca31a49fec34400c1e4dc417
treeb1361bb2c51ba61bc0ab2d6c984930d291c4d438
parent00e704bf080ffeeb9e334fb3ab71594f9aa50969
[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.
mlir/include/mlir/IR/Builders.h
mlir/lib/Interfaces/DataLayoutInterfaces.cpp
mlir/lib/Reducer/Tester.cpp