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 1fd3ae4 commit 654359eCopy full SHA for 654359e
lib/Interpreter/CppInterOp.cpp
@@ -614,13 +614,8 @@ namespace Cpp {
614
if (!CXXRD || CXXRD->getNumBases() <= ibase) return 0;
615
616
auto type = (CXXRD->bases_begin() + ibase)->getType();
617
- if (auto RT = type->getAs<RecordType>()) {
618
- return (TCppScope_t) RT->getDecl();
619
- } else if (auto TST = type->getAs<clang::TemplateSpecializationType>()) {
620
- TemplateName TN = TST->getTemplateName();
621
- if (auto *TD = dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()))
622
- return TD->getTemplatedDecl();
623
- }
+ if (auto RT = type->getAs<RecordType>())
+ return (TCppScope_t)RT->getDecl();
624
625
return 0;
626
}
0 commit comments