diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-10-08 17:08:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-10-08 17:08:03 +0000 |
commit | c37877d7a4c029d87b01a4591d85b989803001bf (patch) | |
tree | 0f454ef49eff30ce24889b630988690b809c104e /clang/lib/Sema/Sema.cpp | |
parent | 3b05e20031bcd9fbdc4f65ef1ada3e887f9daeaf (diff) | |
download | bcm5719-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/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 6f2b3095326..59648441a6d 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -997,7 +997,7 @@ Scope *Sema::getScopeForContext(DeclContext *Ctx) { // Ignore scopes that cannot have declarations. This is important for // out-of-line definitions of static class members. if (S->getFlags() & (Scope::DeclScope | Scope::TemplateParamScope)) - if (DeclContext *Entity = static_cast<DeclContext *> (S->getEntity())) + if (DeclContext *Entity = S->getEntity()) if (Ctx == Entity->getPrimaryContext()) return S; } |