forked from OSchip/llvm-project
checkDLLAttribute: remove a redundant dyn_cast
The same dyn_cast was done earlier in the function. No functionality change. llvm-svn: 216326
This commit is contained in:
parent
ad7c910ecf
commit
2f9e293e37
|
@ -4471,8 +4471,7 @@ static void checkDLLAttribute(Sema &S, CXXRecordDecl *Class) {
|
|||
Member->addAttr(NewAttr);
|
||||
}
|
||||
|
||||
if (CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(Member)) {
|
||||
if (ClassExported) {
|
||||
if (MD && ClassExported) {
|
||||
if (MD->isUserProvided()) {
|
||||
// Instantiate non-default methods..
|
||||
|
||||
|
@ -4496,7 +4495,6 @@ static void checkDLLAttribute(Sema &S, CXXRecordDecl *Class) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// \brief Perform semantic checks on a class definition that has been
|
||||
|
|
Loading…
Reference in New Issue