forked from OSchip/llvm-project
[TableGen] Use llvm::cast instead of static_cast so that the cast will be checked. NFC
llvm-svn: 329045
This commit is contained in:
parent
95f8d303ab
commit
95dade523a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue