LowerTypeTests: Remove unnecessary cast. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2017-11-30 00:02:55 +00:00
parent 0a78cd8e7f
commit 1edbc9f1bc

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);
}