diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-05-22 21:36:38 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-05-22 21:36:38 +0000 |
commit | e51da3eab6ad2d02fcd8f68bdaef22d33a855210 (patch) | |
tree | 1bfa44f5a9427d658426ac7786a70741e36d1bc8 /lib/Sema/SemaDecl.cpp | |
parent | 6b9a6e390fbb92c40eb9c6ac9e7abbd88dd7a767 (diff) | |
download | src-e51da3eab6ad2d02fcd8f68bdaef22d33a855210.tar.gz src-e51da3eab6ad2d02fcd8f68bdaef22d33a855210.zip |
Vendor import of clang release_31 final r156748:vendor/clang/clang-release_31-r156748
Notes
Notes:
svn path=/vendor/clang/dist/; revision=235809
svn path=/vendor/clang/clang-release_31-r156748/; revision=235810; tag=vendor/clang/clang-release_31-r156748
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 1550993079a7..1227e92f76eb 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -7635,7 +7635,7 @@ NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc, SourceLocation(), SourceLocation(), SourceLocation(), EST_None, SourceLocation(), - 0, 0, 0, 0, 0, Loc, Loc, D), + 0, 0, 0, 0, Loc, Loc, D), DS.getAttributes(), SourceLocation()); D.SetIdentifier(&II, Loc); @@ -9784,21 +9784,6 @@ void Sema::ActOnFields(Scope* S, if (!Completed) Record->completeDefinition(); - // Now that the record is complete, do any delayed exception spec checks - // we were missing. - while (!DelayedDestructorExceptionSpecChecks.empty()) { - const CXXDestructorDecl *Dtor = - DelayedDestructorExceptionSpecChecks.back().first; - if (Dtor->getParent() != Record) - break; - - assert(!Dtor->getParent()->isDependentType() && - "Should not ever add destructors of templates into the list."); - CheckOverridingFunctionExceptionSpec(Dtor, - DelayedDestructorExceptionSpecChecks.back().second); - DelayedDestructorExceptionSpecChecks.pop_back(); - } - } else { ObjCIvarDecl **ClsFields = reinterpret_cast<ObjCIvarDecl**>(RecFields.data()); |