[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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236398 91177308-0d34-0410-b5e6-96231b3b80d8

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;
   }