summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2012-10-05 03:31:58 +0000
committerSean Silva <silvas@purdue.edu>2012-10-05 03:31:58 +0000
commit736ceace11249da645ec4ed91b8714832193ead4 (patch)
treeab9c91b06c5f1cb4669f52de8616c2ba73428ebc /utils
parent89adeb225db4cd4d5c671d2ac5e2e6a6e755b5bc (diff)
downloadllvm-736ceace11249da645ec4ed91b8714832193ead4.tar.gz
llvm-736ceace11249da645ec4ed91b8714832193ead4.tar.bz2
llvm-736ceace11249da645ec4ed91b8714832193ead4.tar.xz
tblgen: Replace uses of dynamic_cast<XXXRecTy> with dyn_cast<>.
This is a mechanical change of dynamic_cast<> to dyn_cast<>. A number of these uses are actually more like isa<> or cast<>, and will be changed to the semanticaly appropriate one in a future patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FixedLenDecoderEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp
index e755c1ce9c..b5f62d8dea 100644
--- a/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/utils/TableGen/FixedLenDecoderEmitter.cpp
@@ -1758,7 +1758,7 @@ static bool populateInstruction(const CodeGenInstruction &CGI, unsigned Opc,
// FIXME: This need to be extended to handle instructions with custom
// decoder methods, and operands with (simple) MIOperandInfo's.
TypedInit *TI = dynamic_cast<TypedInit*>(NI->first);
- RecordRecTy *Type = dynamic_cast<RecordRecTy*>(TI->getType());
+ RecordRecTy *Type = dyn_cast<RecordRecTy>(TI->getType());
Record *TypeRecord = Type->getRecord();
bool isReg = false;
if (TypeRecord->isSubClassOf("RegisterOperand"))