[llvm] 93c2a9a - Use isa<> instead of dyn_cast<> to avoid unused variable warning. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 07:27:08 PST 2020


Author: Simon Pilgrim
Date: 2020-11-04T15:26:32Z
New Revision: 93c2a9ae078daaf1c182472d63200db3783c67d5

URL: https://github.com/llvm/llvm-project/commit/93c2a9ae078daaf1c182472d63200db3783c67d5
DIFF: https://github.com/llvm/llvm-project/commit/93c2a9ae078daaf1c182472d63200db3783c67d5.diff

LOG: Use isa<> instead of dyn_cast<> to avoid unused variable warning. NFCI.

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index c10b3b959742..ed0aa77b011d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -3155,7 +3155,7 @@ void CodeViewDebug::emitStaticConstMemberList() {
 }
 
 static bool isFloatDIType(const DIType *Ty) {
-  if (auto *CTy = dyn_cast<DICompositeType>(Ty))
+  if (isa<DICompositeType>(Ty))
     return false;
 
   if (auto *DTy = dyn_cast<DIDerivedType>(Ty)) {


        


More information about the llvm-commits mailing list