Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions include/swift/AST/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -8132,13 +8132,7 @@ inline ASTContext &TypeBase::getASTContext() const {

inline bool TypeBase::isBareErrorType() const {
auto *errTy = dyn_cast<ErrorType>(this);
if (!errTy)
return false;

// FIXME: We shouldn't need to check for a recursive bare error type, we can
// remove this once we flatten them.
auto originalTy = errTy->getOriginalType();
return !originalTy || originalTy->isBareErrorType();
return errTy && !errTy->getOriginalType();
}

// TODO: This will become redundant once InOutType is removed.
Expand Down