Skip to content

Commit 079b2d5

Browse files
committed
GV -> *GV in auto decl for clarity
1 parent 7e44c55 commit 079b2d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ unsigned SystemZTTIImpl::adjustInliningThreshold(const CallBase *CB) const {
103103
}
104104
if (const auto *SI = dyn_cast<StoreInst>(&I)) {
105105
if (!SI->isVolatile())
106-
if (auto GV = dyn_cast<GlobalVariable>(SI->getPointerOperand()))
106+
if (auto *GV = dyn_cast<GlobalVariable>(SI->getPointerOperand()))
107107
Ptr2NumUses[GV]++;
108108
} else if (const auto *LI = dyn_cast<LoadInst>(&I)) {
109109
if (!LI->isVolatile())
110-
if (auto GV = dyn_cast<GlobalVariable>(LI->getPointerOperand()))
110+
if (auto *GV = dyn_cast<GlobalVariable>(LI->getPointerOperand()))
111111
Ptr2NumUses[GV]++;
112112
} else if (const auto *GEP = dyn_cast<GetElementPtrInst>(&I)) {
113-
if (auto GV = dyn_cast<GlobalVariable>(GEP->getPointerOperand())) {
113+
if (auto *GV = dyn_cast<GlobalVariable>(GEP->getPointerOperand())) {
114114
unsigned NumStores = 0, NumLoads = 0;
115115
countNumMemAccesses(GEP, NumStores, NumLoads, Callee);
116116
Ptr2NumUses[GV] += NumLoads + NumStores;

0 commit comments

Comments
 (0)