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 @@ -3923,6 +3923,17 @@ namespace {
3923
3923
auto dc = Impl.importDeclContextOf (
3924
3924
decl, importedName.getEffectiveContext ());
3925
3925
3926
+ #ifndef NDEBUG
3927
+ if (dc == nullptr ) {
3928
+ llvm::dbgs () << " No decl context!\n " ;
3929
+ llvm::dbgs () << " Decl: " << importedName.getDeclName ().getBaseIdentifier ().str () << " \n " ;
3930
+ llvm::dbgs () << " Decl: " ; decl->dump ();
3931
+ llvm::dbgs () << " Efective ctx: " ; importedName.getEffectiveContext ().DC ->dumpAsDecl ();
3932
+ llvm::dbgs () << " Decl ctx: " ; decl->getDeclContext ()->dumpAsDecl ();
3933
+ llvm_unreachable (" " );
3934
+ }
3935
+ #endif
3936
+
3926
3937
SmallVector<GenericTypeParamDecl *, 4 > genericParams;
3927
3938
for (auto ¶m : *decl->getTemplateParameters ()) {
3928
3939
auto genericParamDecl =
You can’t perform that action at this time.
0 commit comments