[all-commits] [llvm/llvm-project] 79c547: Support: Pass wrapped Error's error code through F...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Fri Nov 12 21:20:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79c5479822e6039f764968225181b93f4c2924ad
      https://github.com/llvm/llvm-project/commit/79c5479822e6039f764968225181b93f4c2924ad
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-11-12 (Fri, 12 Nov 2021)

  Changed paths:
    M llvm/lib/Support/Error.cpp
    M llvm/unittests/Support/ErrorTest.cpp

  Log Message:
  -----------
  Support: Pass wrapped Error's error code through FileError

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.

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




More information about the All-commits mailing list