summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
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
commit98c61711c6c5239b68e33a975090542d9731bdbc (patch)
tree6861626aa3f84ad041f7b976fc5b803192621470 /llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
parent303c8e36ef8b3adbec120750a9f35caeafe82075 (diff)
downloadbcm5719-llvm-98c61711c6c5239b68e33a975090542d9731bdbc.tar.gz
bcm5719-llvm-98c61711c6c5239b68e33a975090542d9731bdbc.zip
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. llvm-svn: 165291
Diffstat (limited to 'llvm/utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FixedLenDecoderEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp b/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
index e755c1ce9cb..b5f62d8dea1 100644
--- a/llvm/utils/TableGen/FixedLenDecoderEmitter.cpp
+++ b/llvm/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"))
OpenPOWER on IntegriCloud