mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
Don't insert class templates into the DynamicClasses vector.
llvm-svn: 124201
This commit is contained in:
@@ -290,6 +290,8 @@ void Sema::ActOnEndOfTranslationUnit() {
|
||||
// this translation unit, then those vtables are considered "used" and must
|
||||
// be emitted.
|
||||
for (unsigned I = 0, N = DynamicClasses.size(); I != N; ++I) {
|
||||
assert(!DynamicClasses[I]->isDependentType() &&
|
||||
"Should not see dependent types here!");
|
||||
if (const CXXMethodDecl *KeyFunction
|
||||
= Context.getKeyFunction(DynamicClasses[I])) {
|
||||
const FunctionDecl *Definition = 0;
|
||||
|
||||
@@ -2746,7 +2746,7 @@ void Sema::CheckCompletedCXXClass(CXXRecordDecl *Record) {
|
||||
}
|
||||
}
|
||||
|
||||
if (Record->isDynamicClass())
|
||||
if (Record->isDynamicClass() && !Record->isDependentType())
|
||||
DynamicClasses.push_back(Record);
|
||||
|
||||
if (Record->getIdentifier()) {
|
||||
|
||||
Reference in New Issue
Block a user