Skip to content

Commit c7df635

Browse files
kazutakahiratagithub-actions[bot]
authored andcommitted
Automerge: [IR] Remove an unnecessary cast (NFC) (#146250)
Agg is already of Type *.
2 parents e11d290 + 8a4b6cd commit c7df635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Instructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,7 @@ Type *ExtractValueInst::getIndexedType(Type *Agg,
25822582
return nullptr;
25832583
}
25842584
}
2585-
return const_cast<Type*>(Agg);
2585+
return Agg;
25862586
}
25872587

25882588
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)