mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
NVPTXAsmPrinter - Don't dereference a dyn_cast result. NFCI.
llvm-svn: 372166
This commit is contained in:
parent
ebdb3552e6
commit
a07ba2c360
@ -1861,7 +1861,7 @@ void NVPTXAsmPrinter::bufferLEByte(const Constant *CPV, int Bytes,
|
||||
case Type::HalfTyID:
|
||||
case Type::FloatTyID:
|
||||
case Type::DoubleTyID: {
|
||||
const ConstantFP *CFP = dyn_cast<ConstantFP>(CPV);
|
||||
const auto *CFP = cast<ConstantFP>(CPV);
|
||||
Type *Ty = CFP->getType();
|
||||
if (Ty == Type::getHalfTy(CPV->getContext())) {
|
||||
APInt API = CFP->getValueAPF().bitcastToAPInt();
|
||||
|
Loading…
Reference in New Issue
Block a user