Skip to content

Commit

Permalink
[AMDGPU] Request module used variables from LDS lowering as internal
Browse files Browse the repository at this point in the history
I do not see any practical difference but technically
used.* variables are internal and a call to getGlobalVariable
misses true as a second argument. NFC as far as I can tell.

Differential Revision: https://reviews.llvm.org/D102884
  • Loading branch information
rampitec committed May 21, 2021
1 parent 7c35bf8 commit 4902885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
Expand Up @@ -52,7 +52,7 @@ class AMDGPULowerModuleLDS : public ModulePass {

static void removeFromUsedList(Module &M, StringRef Name,
SmallPtrSetImpl<Constant *> &ToRemove) {
GlobalVariable *GV = M.getGlobalVariable(Name);
GlobalVariable *GV = M.getNamedGlobal(Name);
if (!GV || ToRemove.empty()) {
return;
}
Expand Down

0 comments on commit 4902885

Please sign in to comment.