The static analyzer is warning about potential null dereferences, but we should be able to use cast<> directly and if not assert will fire for us.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372507
91177308-0d34-0410-b5e6-
96231b3b80d8
Info.AI->isArrayAllocation()
? ArrayType::get(
Info.AI->getAllocatedType(),
- dyn_cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue())
+ cast<ConstantInt>(Info.AI->getArraySize())->getZExtValue())
: Info.AI->getAllocatedType();
Type *PaddingType =
ArrayType::get(Type::getInt8Ty(F->getContext()), AlignedSize - Size);