diff options
Diffstat (limited to 'include/llvm/TableGen/Record.h')
-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 a4ec9665c6..0e75cf4289 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() && - (dynamic_cast<IntRecTy*>(T->getType()) || - (dynamic_cast<BitsRecTy*>(T->getType()) && - dynamic_cast<BitsRecTy*>(T->getType())->getNumBits() > B)) && + (dyn_cast<IntRecTy>(T->getType()) || + (dyn_cast<BitsRecTy>(T->getType()) && + dyn_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(dynamic_cast<ListRecTy*>(T->getType())->getElementType()), + : TypedInit(dyn_cast<ListRecTy>(T->getType())->getElementType()), TI(T), Element(E) { - assert(T->getType() && dynamic_cast<ListRecTy*>(T->getType()) && + assert(T->getType() && dyn_cast<ListRecTy>(T->getType()) && "Illegal VarBitInit expression!"); } |