summaryrefslogtreecommitdiff
path: root/utils/TableGen/FixedLenDecoderEmitter.cpp
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2012-10-10 20:24:47 +0000
committerSean Silva <silvas@purdue.edu>2012-10-10 20:24:47 +0000
commit3f7b7f8ce0b050fc6a0100839d9c5a84198b2aed (patch)
treeb229fa1cc21ace68695e23723471305c15eaf0d1 /utils/TableGen/FixedLenDecoderEmitter.cpp
parent6cfc806a6b82b60a3e923b6b89f2b4da62cdb50b (diff)
downloadllvm-3f7b7f8ce0b050fc6a0100839d9c5a84198b2aed.tar.gz
llvm-3f7b7f8ce0b050fc6a0100839d9c5a84198b2aed.tar.bz2
llvm-3f7b7f8ce0b050fc6a0100839d9c5a84198b2aed.tar.xz
tblgen: Use semantically correct RTTI functions.
Also, some minor cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index aa4dd8a762..c53776b9ff 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -1757,8 +1757,8 @@ static bool populateInstruction(const CodeGenInstruction &CGI, unsigned Opc,
// for decoding register classes.
// FIXME: This need to be extended to handle instructions with custom
// decoder methods, and operands with (simple) MIOperandInfo's.
- TypedInit *TI = dyn_cast<TypedInit>(NI->first);
- RecordRecTy *Type = dyn_cast<RecordRecTy>(TI->getType());
+ TypedInit *TI = cast<TypedInit>(NI->first);
+ RecordRecTy *Type = cast<RecordRecTy>(TI->getType());
Record *TypeRecord = Type->getRecord();
bool isReg = false;
if (TypeRecord->isSubClassOf("RegisterOperand"))