Skip to content

Commit 4b563a6

Browse files
committed
Update MSVCMacroRebuilding.cpp
1 parent 117387e commit 4b563a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/IPO/MSVCMacroRebuilding.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ PreservedAnalyses MSVCMacroRebuildingPass::run(Module &M,
8888
// instruction in a function.
8989
for (auto UserIt = GV.users().begin(); UserIt != GV.users().end();
9090
++UserIt) {
91-
if (Instruction *Inst = dyn_cast<Instruction>(*UserIt)) {
92-
if (!Inst->getParent())
91+
if (Instruction *I = dyn_cast<Instruction>(*UserIt)) {
92+
if (!I->getParent())
9393
continue;
9494

95-
Function *F = Inst->getParent()->getParent();
95+
Function *F = I->getParent()->getParent();
9696
if (!F)
9797
continue;
9898

0 commit comments

Comments
 (0)