commit | 651f86fb6b0f1a251c65a9be6d3fa83e67d5988d | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Tue Feb 08 18:21:25 2011 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Tue Feb 08 18:21:25 2011 +0000 |
tree | d94e979afb54860698a85f31129b29b98a4b7861 | |
parent | 1e52dfc648ce0b25ef57ae29ef1b4337d80011ef [diff] |
In Sema::CheckShadow, get the DeclContext from the variable that we are checking instead from the Scope; Inner scopes in bodies don't have DeclContexts associated with them. Fixes http://llvm.org/PR9160 & rdar://problem/8966163. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125097 91177308-0d34-0410-b5e6-96231b3b80d8