Change FileError to pass through the error code from the Error it wraps.
This allows APIs that return ECError to transition to FileError without
changing returned std::error_code.
This was extracted from https://reviews.llvm.org/D109345.
Paths
| Differential D113225
Support: Pass wrapped Error's error code through FileError ClosedPublic Authored by dexonsmith on Nov 4 2021, 4:14 PM.
Details Summary Change FileError to pass through the error code from the Error it wraps. This was extracted from https://reviews.llvm.org/D109345.
Diff Detail
Event Timelinedexonsmith mentioned this in D113226: Support: Change FileOutputBuffer to return FileError.Nov 4 2021, 4:15 PM Comment ActionsNote: I have an example of using this at https://reviews.llvm.org/D113226. This revision is now accepted and ready to land.Nov 5 2021, 11:59 AM This revision was landed with ongoing or failed builds.Nov 12 2021, 9:20 PM Closed by commit rG79c5479822e6: Support: Pass wrapped Error's error code through FileError (authored by dexonsmith). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 387004 llvm/lib/Support/Error.cpp
llvm/unittests/Support/ErrorTest.cpp
|