Skip to content

Commit 8a4b6cd

Browse files
[IR] Remove an unnecessary cast (NFC) (#146250)
Agg is already of Type *.
1 parent 0d0daef commit 8a4b6cd

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)