swift-module-digester: diagnose any decl kind changes for nominal types.

This commit is contained in:
Xi Ge
2018-09-24 14:47:19 -07:00
parent 3b16f34ad4
commit d0cd97e3e5
8 changed files with 45 additions and 14 deletions

View File

@@ -764,6 +764,9 @@ bool SDKNode::operator==(const SDKNode &Other) const {
if (Left->getSuperClassName() != Right->getSuperClassName()) {
return false;
}
if (Left->getDeclKind() != Right->getDeclKind()) {
return false;
}
}
LLVM_FALLTHROUGH;
}