зеркало из https://github.com/microsoft/clang-1.git
Exit early from the simple form of Sema::RequireNonAbstractType(), for
a 2.47% speedup in 403.gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
1c3639351f
Коммит
cb9bafeb9b
|
@ -1939,6 +1939,9 @@ void Sema::ActOnDefaultCtorInitializers(DeclPtrTy CDtorDecl) {
|
|||
bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
|
||||
unsigned DiagID, AbstractDiagSelID SelID,
|
||||
const CXXRecordDecl *CurrentRD) {
|
||||
if (!getLangOptions().CPlusPlus)
|
||||
return false;
|
||||
|
||||
if (SelID == -1)
|
||||
return RequireNonAbstractType(Loc, T,
|
||||
PDiag(DiagID), CurrentRD);
|
||||
|
|
Загрузка…
Ссылка в новой задаче