llvm::ErrorOr::getError

Return the stored error code, or a default-constructed code on success.

Synopsis

Declared in <llvm/Support/ErrorOr.h>

std::error_code
getError() const;

Return Value

The stored error code, or a default-constructed code on success.