Skip to content

Commit c079082

Browse files
Merge pull request swiftlang#72988 from AnthonyLatsis/nfcs
[NFC] Two trivial NFCs
2 parents 0b41bd2 + d347420 commit c079082

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

lib/AST/ASTVerifier.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,28 +3594,6 @@ class Verifier : public ASTWalker {
35943594
abort();
35953595
}
35963596

3597-
void checkSameOrSubType(Type T0, Type T1, const char *what) {
3598-
if (T0->isEqual(T1))
3599-
return;
3600-
3601-
// Protocol subtyping.
3602-
if (auto Proto0 = T0->getAs<ProtocolType>())
3603-
if (auto Proto1 = T1->getAs<ProtocolType>())
3604-
if (Proto0->getDecl()->inheritsFrom(Proto1->getDecl()))
3605-
return;
3606-
3607-
// FIXME: Actually check this?
3608-
if (T0->isExistentialType() || T1->isExistentialType())
3609-
return;
3610-
3611-
Out << "incompatible types for " << what << ": ";
3612-
T0.print(Out);
3613-
Out << " vs. ";
3614-
T1.print(Out);
3615-
Out << "\n";
3616-
abort();
3617-
}
3618-
36193597
Type checkExceptionTypeExists(const char *where) {
36203598
if (!Ctx.getErrorDecl()) {
36213599
Out << "exception type does not exist in " << where << "\n";

lib/Sema/ConstraintLocator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ void ConstraintLocatorBuilder::dump(SourceManager *SM, llvm::raw_ostream &out) c
810810
prev->dump(SM, out);
811811
}
812812
if (element) {
813-
out << " -> ";
813+
out << " ";
814814
element->dump(out);
815815
}
816816
}

0 commit comments

Comments
 (0)