[TableGen] Use llvm::cast instead of static_cast so that the cast will be checked. NFC

llvm-svn: 329045
This commit is contained in:
Craig Topper 2018-04-03 05:10:12 +00:00
parent 95f8d303ab
commit 95dade523a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ static uint8_t byteFromBitsInit(BitsInit &init) {
uint8_t ret = 0;
for (index = 0; index < width; index++) {
if (static_cast<BitInit*>(init.getBit(index))->getValue())
if (cast<BitInit>(init.getBit(index))->getValue())
ret |= mask;
mask <<= 1;