From cb88a1f968c3d4eb451dafb421a8d9578edcbf1a Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 24 Jan 2011 16:26:15 +0000 Subject: Use attributes for all the override control specifiers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124122 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprCXX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExprCXX.cpp') diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index 9ce90c0ce8..7177a64e74 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -65,12 +65,12 @@ static bool canDevirtualizeMemberFunctionCalls(ASTContext &Context, // If the member function is marked 'final', we know that it can't be // overridden and can therefore devirtualize it. - if (MD->isMarkedFinal()) + if (MD->hasAttr()) return true; // Similarly, if the class itself is marked 'final' it can't be overridden // and we can therefore devirtualize the member function call. - if (MD->getParent()->isMarkedFinal()) + if (MD->getParent()->hasAttr()) return true; if (const DeclRefExpr *DRE = dyn_cast(Base)) { -- cgit v1.2.3