mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[AMDGPU] Request module used variables from LDS lowering as internal
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
This commit is contained in:
parent
068fb4deaa
commit
ebc40fee5f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user