We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc89dad commit 126932fCopy full SHA for 126932f
include/swift/AST/FineGrainedDependencies.h
@@ -390,6 +390,17 @@ template <typename NodeT> class InterfaceAndImplementationPair {
390
391
InterfaceAndImplementationPair(NodeT *interface, NodeT *implementation)
392
: interface(interface), implementation(implementation) {
393
+
394
+ if (!interface->getKey().isInterface()) {
395
+ llvm::errs() << "interface key is wrong: \n";
396
+ interface->dump();
397
+ }
398
+ if (!implementation->getKey().isImplementation()) {
399
+ llvm::errs() << "implementation key is wrong: \n";
400
+ implementation->dump();
401
402
403
404
assert(
405
interface->getKey().isInterface() &&
406
implementation->getKey().isImplementation() &&
0 commit comments