[TableGen] Replace 'static_cast' with 'cast'.
authorCraig Topper <craig.topper@gmail.com>
Mon, 4 May 2015 01:35:42 +0000 (01:35 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 4 May 2015 01:35:42 +0000 (01:35 +0000)
llvm-svn: 236398

llvm/lib/TableGen/Record.cpp

index b4fcb47..79b4e33 100644 (file)
@@ -883,7 +883,7 @@ Init *BinOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const {
       Args.insert(Args.end(), LHSs->begin(), LHSs->end());
       Args.insert(Args.end(), RHSs->begin(), RHSs->end());
       return ListInit::get(
-          Args, static_cast<ListRecTy *>(LHSs->getType())->getElementType());
+          Args, cast<ListRecTy>(LHSs->getType())->getElementType());
     }
     break;
   }