[llvm] 522d905 - Revert "Fix a misuse of `cast`"
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 12:37:30 PDT 2022
Author: Sheng
Date: 2022-05-03T03:37:13+08:00
New Revision: 522d90528e5a49393b7293204e20b311e789a913
URL: https://github.com/llvm/llvm-project/commit/522d90528e5a49393b7293204e20b311e789a913
DIFF: https://github.com/llvm/llvm-project/commit/522d90528e5a49393b7293204e20b311e789a913.diff
LOG: Revert "Fix a misuse of `cast`"
This reverts commit ba59ec2843f99f19d55d7cd9f9ac536fb038fdab.
Added:
Modified:
llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index 33be554febc8c..bbb5d4725307f 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -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();
}
More information about the llvm-commits
mailing list