LowerTypeTests: Remove unnecessary cast. NFC.

llvm-svn: 319387
This commit is contained in:
Peter Collingbourne 2017-11-30 00:02:55 +00:00
parent b8304a6aed
commit 943aca3c27
1 changed files with 1 additions and 1 deletions

View File

@ -1706,7 +1706,7 @@ bool LowerTypeTestsModule::lower() {
GlobalTypeMember::create(Alloc, &GO, IsDefinition, IsExported, Types);
for (MDNode *Type : Types) {
verifyTypeMDNode(&GO, Type);
auto &Info = TypeIdInfo[cast<MDNode>(Type)->getOperand(1)];
auto &Info = TypeIdInfo[Type->getOperand(1)];
Info.Index = ++I;
Info.RefGlobals.push_back(GTM);
}