[MBP] Fix a really misleading typo in a comment.
[oota-llvm.git] / lib / TableGen / Record.cpp
index 4ae99037099526892b23dcbf426881fbb530f650..8a8f0ee3a089ba0877e4488b81df935b063b263e 100644 (file)
@@ -2040,7 +2040,7 @@ RecordKeeper::getAllDerivedDefinitions(const std::string &ClassName) const {
 /// to CurRec's name.
 Init *llvm::QualifyName(Record &CurRec, MultiClass *CurMultiClass,
                         Init *Name, const std::string &Scoper) {
-  RecTy *Type = dyn_cast<TypedInit>(Name)->getType();
+  RecTy *Type = cast<TypedInit>(Name)->getType();
 
   BinOpInit *NewName =
     BinOpInit::get(BinOpInit::STRCONCAT,