File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3712,6 +3712,17 @@ namespace {
3712
3712
auto dc = Impl.importDeclContextOf (
3713
3713
decl, importedName.getEffectiveContext ());
3714
3714
3715
+ #ifndef NDEBUG
3716
+ if (dc == nullptr ) {
3717
+ llvm::dbgs () << " No decl context!\n " ;
3718
+ llvm::dbgs () << " Decl: " << importedName.declName .getBaseIdentifier ().str () << " \n " ;
3719
+ llvm::dbgs () << " Decl: " ; decl->dump ();
3720
+ llvm::dbgs () << " Efective ctx: " ; importedName.getEffectiveContext ().DC ->dumpAsDecl ();
3721
+ llvm::dbgs () << " Decl ctx: " ; decl->getDeclContext ()->dumpAsDecl ();
3722
+ llvm_unreachable (" " );
3723
+ }
3724
+ #endif
3725
+
3715
3726
SmallVector<GenericTypeParamDecl *, 4 > genericParams;
3716
3727
for (auto ¶m : *decl->getTemplateParameters ()) {
3717
3728
auto genericParamDecl =
You can’t perform that action at this time.
0 commit comments