1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

LowerTypeTests: Remove unnecessary cast. NFC.

llvm-svn: 319387
This commit is contained in:
Peter Collingbourne 2017-11-30 00:02:55 +00:00
parent d52b310ee4
commit 2183142a40

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