diff options
author | Sean Silva <silvas@purdue.edu> | 2012-10-05 03:32:00 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2012-10-05 03:32:00 +0000 |
commit | 63554988a94b8a4bcf3de77659a0b27c07a0975d (patch) | |
tree | 2ce3076edee3b84b336bb9d8b2e8a878ab911e9b /include | |
parent | 736ceace11249da645ec4ed91b8714832193ead4 (diff) | |
download | llvm-63554988a94b8a4bcf3de77659a0b27c07a0975d.tar.gz llvm-63554988a94b8a4bcf3de77659a0b27c07a0975d.tar.bz2 llvm-63554988a94b8a4bcf3de77659a0b27c07a0975d.tar.xz |
tblgen: Use appropriate LLVM-style RTTI functions.
Use isa<> or cast<> when semantically that is what is happening. Also
some trivial "style" cleanups at fix sites.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/TableGen/Record.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/TableGen/Record.h b/include/llvm/TableGen/Record.h index 0e75cf4289..079dc8ce8e 100644 --- a/include/llvm/TableGen/Record.h +++ b/include/llvm/TableGen/Record.h @@ -1085,9 +1085,9 @@ class VarBitInit : public Init { VarBitInit(TypedInit *T, unsigned B) : TI(T), Bit(B) { assert(T->getType() && - (dyn_cast<IntRecTy>(T->getType()) || - (dyn_cast<BitsRecTy>(T->getType()) && - dyn_cast<BitsRecTy>(T->getType())->getNumBits() > B)) && + (isa<IntRecTy>(T->getType()) || + (isa<BitsRecTy>(T->getType()) && + cast<BitsRecTy>(T->getType())->getNumBits() > B)) && "Illegal VarBitInit expression!"); } @@ -1120,9 +1120,9 @@ class VarListElementInit : public TypedInit { unsigned Element; VarListElementInit(TypedInit *T, unsigned E) - : TypedInit(dyn_cast<ListRecTy>(T->getType())->getElementType()), + : TypedInit(cast<ListRecTy>(T->getType())->getElementType()), TI(T), Element(E) { - assert(T->getType() && dyn_cast<ListRecTy>(T->getType()) && + assert(T->getType() && isa<ListRecTy>(T->getType()) && "Illegal VarBitInit expression!"); } |