Revert "Fix a misuse of `cast`"

This reverts commit ba59ec2843.
This commit is contained in:
Sheng 2022-05-03 03:32:02 +08:00
parent a0b5af46a2
commit 522d90528e
1 changed files with 1 additions and 1 deletions

View File

@ -1970,7 +1970,7 @@ populateInstruction(CodeGenTarget &Target, const Record &EncodingDef,
CGI.Operands[SO.first].MIOperandInfo->getNumArgs()) {
Init *Arg = CGI.Operands[SO.first].MIOperandInfo->
getArg(SO.second);
if (DefInit *DI = dyn_cast<DefInit>(Arg))
if (DefInit *DI = cast<DefInit>(Arg))
TypeRecord = DI->getDef();
}