16 std::make_error_code(std::errc::invalid_argument),
17 "Must not call RecordConsumer::consume() with a null pointer.");
18 Records.push_back(std::move(R));
25 std::make_error_code(std::errc::invalid_argument),
26 "Must not call RecordConsumer::consume() with a null pointer.");
31 for (
auto *V : Visitors)
32 Result =
joinErrors(std::move(Result), R->apply(*V));
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
Error consume(std::unique_ptr< Record > R) override
Error consume(std::unique_ptr< Record > R) override
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.
Error joinErrors(Error E1, Error E2)
Concatenate errors.