[llvm] r367985 - Use "isa" since the variable isn't used.

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 00:27:26 PDT 2019


Author: void
Date: Tue Aug  6 00:27:26 2019
New Revision: 367985

URL: http://llvm.org/viewvc/llvm-project?rev=367985&view=rev
Log:
Use "isa" since the variable isn't used.

Modified:
    llvm/trunk/lib/Target/BPF/BPFAbstractMemberAccess.cpp

Modified: llvm/trunk/lib/Target/BPF/BPFAbstractMemberAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BPFAbstractMemberAccess.cpp?rev=367985&r1=367984&r2=367985&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BPFAbstractMemberAccess.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BPFAbstractMemberAccess.cpp Tue Aug  6 00:27:26 2019
@@ -311,7 +311,7 @@ bool BPFAbstractMemberAccess::IsValidAIC
 
   // 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<DIDerivedType>(CType))
+  if (isa<DIDerivedType>(CType))
     return false;
 
   // Parent is a pointer type.




More information about the llvm-commits mailing list