summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-22 13:43:12 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-22 13:43:12 +0000
commit62ed3fea67072724e825101188a77e6cd2b57669 (patch)
tree950477cfd1f9a3e13add4d444d47dcbd44e4eabd /llvm/lib/Target
parent597ec24c14575f7857f260a4d9257c1d6f14fe7c (diff)
downloadbcm5719-llvm-62ed3fea67072724e825101188a77e6cd2b57669.tar.gz
bcm5719-llvm-62ed3fea67072724e825101188a77e6cd2b57669.zip
[AArch64] AArch64StackTagging - Silence static analyzer dyn_cast<> null dereference warning. NFCI.
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. llvm-svn: 372507
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AArch64/AArch64StackTagging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
index 4dfe743bafa..5942f61ca74 100644
--- a/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
+++ b/llvm/lib/Target/AArch64/AArch64StackTagging.cpp
@@ -471,7 +471,7 @@ void AArch64StackTagging::alignAndPadAlloca(AllocaInfo &Info) {
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);
OpenPOWER on IntegriCloud