When performing a delayed access check, use the surrounding lexical context for
any local extern declaration, not just a local extern function.


git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@197000 91177308-0d34-0410-b5e6-96231b3b80d8