From 9df62c1297af2a84c1dedb937f48fc7fc4588061 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 6 Aug 2019 07:27:26 +0000 Subject: [PATCH] Use "isa" since the variable isn't used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367985 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/BPF/BPFAbstractMemberAccess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/BPF/BPFAbstractMemberAccess.cpp b/lib/Target/BPF/BPFAbstractMemberAccess.cpp index f55f6f992cf..e4f29fbb3db 100644 --- a/lib/Target/BPF/BPFAbstractMemberAccess.cpp +++ b/lib/Target/BPF/BPFAbstractMemberAccess.cpp @@ -311,7 +311,7 @@ bool BPFAbstractMemberAccess::IsValidAIChain(const MDNode *ParentType, // Child is a derived/pointer type, which is due to type casting. // Pointer type cannot be in the middle of chain. - if (const auto *PtrTy = dyn_cast(CType)) + if (isa(CType)) return false; // Parent is a pointer type. -- 2.40.0