Fix call for upstream llvm change of ClangDecl::isInLocalScope()
Fix call for upstream llvm change of ClangDecl::isInLocalScope()

After f721e0582b158c60c56d2601235b6d60758f4d7a in llvm it's now called
isInLocalScopeForInstantiation() and returns false if the context is not
dependent on a template parameter, so doesn't have the desired behavior for the
single swift caller in the clang importer.

This pulls out the old logic into a new static isLocalScope() function in
ClangAdapter.cpp.

jmgc/swift,tkremenek/swift,xwu/swift,jmgc/swift,gregomni/swift,roambotics/swift,parkera/swift,parkera/swift,nathawes/swift,jmgc/swift,parkera/swift,roambotics/swift,benlangmuir/swift,rudkx/swift,parkera/swift,CodaFi/swift,atrick/swift,tkremenek/swift,rudkx/swift,ahoppen/swift,jmgc/swift,benlangmuir/swift,gregomni/swift,apple/swift,hooman/swift,hooman/swift,nathawes/swift,gregomni/swift,atrick/swift,xwu/swift,ahoppen/swift,JGiola/swift,gregomni/swift,atrick/swift,nathawes/swift,benlangmuir/swift,apple/swift,nathawes/swift,hooman/swift,tkremenek/swift,atrick/swift,JGiola/swift,JGiola/swift,JGiola/swift,benlangmuir/swift,CodaFi/swift,xwu/swift,tkremenek/swift,CodaFi/swift,gregomni/swift,apple/swift,glessard/swift,CodaFi/swift,gregomni/swift,CodaFi/swift,hooman/swift,hooman/swift,nathawes/swift,hooman/swift,ahoppen/swift,xwu/swift,apple/swift,CodaFi/swift,roambotics/swift,benlangmuir/swift,glessard/swift,jmgc/swift,rudkx/swift,rudkx/swift,ahoppen/swift,rudkx/swift,parkera/swift,atrick/swift,glessard/swift,nathawes/swift,ahoppen/swift,JGiola/swift,hooman/swift,JGiola/swift,roambotics/swift,apple/swift,nathawes/swift,atrick/swift,parkera/swift,jmgc/swift,roambotics/swift,tkremenek/swift,glessard/swift,parkera/swift,rudkx/swift,parkera/swift,glessard/swift,apple/swift,xwu/swift,jmgc/swift,roambotics/swift,glessard/swift,CodaFi/swift,benlangmuir/swift,tkremenek/swift,tkremenek/swift,xwu/swift,xwu/swift,ahoppen/swift