[clang][NFC] Tighten up code for GetGlobalVarAddressSpace
authorAndy Wingo <wingo@igalia.com>
Wed, 4 Aug 2021 09:32:51 +0000 (11:32 +0200)
committerAndy Wingo <wingo@igalia.com>
Mon, 23 Aug 2021 12:55:58 +0000 (14:55 +0200)
commit8da70fed704c15d9656cbf2df190122acb975921
tree4b54db17448898d9a072ab05c918bc3a8decf3e7
parentd3d4d98576f4f9b21579fa65630f5355dd9d1234
[clang][NFC] Tighten up code for GetGlobalVarAddressSpace

The LangAS local is only used in the OpenCL case; move its decl
inwards.

Differential Revision: https://reviews.llvm.org/D108449
clang/lib/CodeGen/CodeGenModule.cpp