summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-01-24 16:26:15 +0000
committerAnders Carlsson <andersca@mac.com>2011-01-24 16:26:15 +0000
commit1eb95961d313180d10208a0a339f9ed09ef672e6 (patch)
tree3c526e2d28eaab0a827a5f8d5a3cdc8a5b9c2335 /clang/lib/CodeGen/CGExprCXX.cpp
parentf143cd5051581385916cc23a588f28cf3ff21fd1 (diff)
downloadbcm5719-llvm-1eb95961d313180d10208a0a339f9ed09ef672e6.tar.gz
bcm5719-llvm-1eb95961d313180d10208a0a339f9ed09ef672e6.zip
Use attributes for all the override control specifiers.
llvm-svn: 124122
Diffstat (limited to 'clang/lib/CodeGen/CGExprCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprCXX.cpp b/clang/lib/CodeGen/CGExprCXX.cpp
index 9ce90c0ce8e..7177a64e74b 100644
--- a/clang/lib/CodeGen/CGExprCXX.cpp
+++ b/clang/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<FinalAttr>())
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<FinalAttr>())
return true;
if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) {
OpenPOWER on IntegriCloud