[llvm] r236398 - [TableGen] Replace 'static_cast' with 'cast'.

Craig Topper craig.topper at gmail.com
Sun May 3 18:35:42 PDT 2015


Author: ctopper
Date: Sun May  3 20:35:42 2015
New Revision: 236398

URL: http://llvm.org/viewvc/llvm-project?rev=236398&view=rev
Log:
[TableGen] Replace 'static_cast' with 'cast'.

Modified:
    llvm/trunk/lib/TableGen/Record.cpp

Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=236398&r1=236397&r2=236398&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Sun May  3 20:35:42 2015
@@ -883,7 +883,7 @@ Init *BinOpInit::Fold(Record *CurRec, Mu
       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;
   }





More information about the llvm-commits mailing list