summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-10-08 17:08:03 +0000
committerTed Kremenek <kremenek@apple.com>2013-10-08 17:08:03 +0000
commitc37877d7a4c029d87b01a4591d85b989803001bf (patch)
tree0f454ef49eff30ce24889b630988690b809c104e /clang/lib/Sema/SemaDeclCXX.cpp
parent3b05e20031bcd9fbdc4f65ef1ada3e887f9daeaf (diff)
downloadbcm5719-llvm-c37877d7a4c029d87b01a4591d85b989803001bf.tar.gz
bcm5719-llvm-c37877d7a4c029d87b01a4591d85b989803001bf.zip
Convert anachronistic use of 'void *' to 'DeclContext *' in Scope that was a holdover from the long-dead Action interface.
llvm-svn: 192203
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index 6d357e7be05..66749c5c644 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -6934,7 +6934,7 @@ void Sema::PushUsingDirective(Scope *S, UsingDirectiveDecl *UDir) {
// If the scope has an associated entity and the using directive is at
// namespace or translation unit scope, add the UsingDirectiveDecl into
// its lookup structure so qualified name lookup can find it.
- DeclContext *Ctx = static_cast<DeclContext*>(S->getEntity());
+ DeclContext *Ctx = S->getEntity();
if (Ctx && !Ctx->isFunctionOrMethod())
Ctx->addDecl(UDir);
else
OpenPOWER on IntegriCloud