[TableGen] Replace some dyn_casts followed by an assert with just a regular cast...
[oota-llvm.git] / lib / TableGen / TGParser.cpp
index 3730172934835cb8350ea0154813ff87d032c618..9bd6cc6c53fbfd630cb71e2aa85566557eab84a0 100644 (file)
@@ -112,8 +112,7 @@ bool TGParser::SetValue(Record *CurRec, SMLoc Loc, Init *ValName,
     }
 
     // We should have a BitsInit type now.
-    BitsInit *BInit = dyn_cast<BitsInit>(BI);
-    assert(BInit != nullptr);
+    BitsInit *BInit = cast<BitsInit>(BI);
 
     SmallVector<Init *, 16> NewBits(CurVal->getNumBits());