Skip to content

Commit

Permalink
Use isa<> instead of dyn_cast<> to avoid unused variable warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Nov 4, 2020
1 parent b36cb12 commit 93c2a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
Expand Up @@ -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)) {
Expand Down

0 comments on commit 93c2a9a

Please sign in to comment.