Skip to content

Commit

Permalink
[GlobalOpt] Use more specific type (NFC)
Browse files Browse the repository at this point in the history
SRA always works on GlobalVariables.
  • Loading branch information
nikic committed Mar 2, 2023
1 parent eea0d06 commit 0ecef88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/IPO/GlobalOpt.cpp
Expand Up @@ -349,7 +349,7 @@ struct GlobalPart {
/// Look at all uses of the global and determine which (offset, type) pairs it
/// can be split into.
static bool collectSRATypes(DenseMap<uint64_t, GlobalPart> &Parts,
GlobalValue *GV, const DataLayout &DL) {
GlobalVariable *GV, const DataLayout &DL) {
SmallVector<Use *, 16> Worklist;
SmallPtrSet<Use *, 16> Visited;
auto AppendUses = [&](Value *V) {
Expand Down

0 comments on commit 0ecef88

Please sign in to comment.