diff options
-rw-r--r-- | lld/COFF/Error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/Error.h b/lld/COFF/Error.h index 0b2d37527e2..e0eb17a045c 100644 --- a/lld/COFF/Error.h +++ b/lld/COFF/Error.h @@ -25,7 +25,7 @@ template <typename T> void error(const ErrorOr<T> &V, const Twine &Prefix) { } template <class T> T check(Expected<T> E, const Twine &Prefix) { - if (!E) + if (E) return std::move(*E); error(E.takeError(), Prefix); return T(); |