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 @@ -3887,6 +3887,17 @@ namespace {
3887
3887
auto dc = Impl.importDeclContextOf (
3888
3888
decl, importedName.getEffectiveContext ());
3889
3889
3890
+ #ifndef NDEBUG
3891
+ if (dc == nullptr ) {
3892
+ llvm::dbgs () << " No decl context!\n " ;
3893
+ llvm::dbgs () << " Decl: " << importedName.getDeclName ().getBaseIdentifier ().str () << " \n " ;
3894
+ llvm::dbgs () << " Decl: " ; decl->dump ();
3895
+ llvm::dbgs () << " Efective ctx: " ; importedName.getEffectiveContext ().DC ->dumpAsDecl ();
3896
+ llvm::dbgs () << " Decl ctx: " ; decl->getDeclContext ()->dumpAsDecl ();
3897
+ llvm_unreachable (" " );
3898
+ }
3899
+ #endif
3900
+
3890
3901
SmallVector<GenericTypeParamDecl *, 4 > genericParams;
3891
3902
for (auto ¶m : *decl->getTemplateParameters ()) {
3892
3903
auto genericParamDecl =
You can’t perform that action at this time.
0 commit comments