Skip to content

Commit

Permalink
[Attributor] Qualify variables to avoid clashes in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed Oct 5, 2022
1 parent abbc3fa commit a955711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Expand Up @@ -1012,7 +1012,7 @@ struct AAPointerInfoImpl
const DominatorTree *DT =
InfoCache.getAnalysisResultForFunction<DominatorTreeAnalysis>(Scope);

enum GPUAddressSpace : unsigned {
enum class GPUAddressSpace : unsigned {
Generic = 0,
Global = 1,
Shared = 3,
Expand All @@ -1027,7 +1027,7 @@ struct AAPointerInfoImpl
Triple T(M.getTargetTriple());
if (!(T.isAMDGPU() || T.isNVPTX()))
return false;
switch (V->getType()->getPointerAddressSpace()) {
switch (GPUAddressSpace(V->getType()->getPointerAddressSpace())) {
case GPUAddressSpace::Shared:
case GPUAddressSpace::Constant:
case GPUAddressSpace::Local:
Expand Down

0 comments on commit a955711

Please sign in to comment.