summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprCXX.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2012-06-19 03:39:03 +0000
committerAlexis Hunt <alercah@gmail.com>2012-06-19 03:39:03 +0000
commit7b28cdb3daa83499d05723679f4b413e38b66885 (patch)
treef42edccde667e0d39310a15e9165498ead8c330f /clang/lib/AST/ExprCXX.cpp
parent8d63d5b8e6eb1a372043ecead1be243e9ca31781 (diff)
downloadbcm5719-llvm-7b28cdb3daa83499d05723679f4b413e38b66885.tar.gz
bcm5719-llvm-7b28cdb3daa83499d05723679f4b413e38b66885.zip
Improve the specification of spellings in Attr.td.
Note that this is mostly a structural patch that handles the change from the old spelling style to the new one. One consequence of this is that all AT_foo_bar enum values have changed to not be based off of the first spelling, but rather off of the class name, so they are now AT_FooBar and the like (a straw poll on IRC showed support for this). Apologies for code churn. Most attributes have GNU spellings as a temporary solution until everything else is sorted out (such as a Keyword spelling, which I intend to add if someone else doesn't beat me to it). This is definitely a WIP. I've also killed BaseCheckAttr since it was unused, and I had to go through every attribute anyway. llvm-svn: 158700
Diffstat (limited to 'clang/lib/AST/ExprCXX.cpp')
-rw-r--r--clang/lib/AST/ExprCXX.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/AST/ExprCXX.cpp b/clang/lib/AST/ExprCXX.cpp
index e4545c152f1..9aac837eb7e 100644
--- a/clang/lib/AST/ExprCXX.cpp
+++ b/clang/lib/AST/ExprCXX.cpp
@@ -556,9 +556,6 @@ bool CXXDynamicCastExpr::isAlwaysNull() const
const CXXRecordDecl *SrcRD =
cast<CXXRecordDecl>(SrcType->castAs<RecordType>()->getDecl());
- if (!SrcRD->hasAttr<FinalAttr>())
- return false;
-
const CXXRecordDecl *DestRD =
cast<CXXRecordDecl>(DestType->castAs<RecordType>()->getDecl());
OpenPOWER on IntegriCloud