From 93c2a9ae078daaf1c182472d63200db3783c67d5 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 4 Nov 2020 14:21:51 +0000 Subject: Use isa<> instead of dyn_cast<> to avoid unused variable warning. NFCI. --- llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index c10b3b9..ed0aa77 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(Ty)) + if (isa(Ty)) return false; if (auto *DTy = dyn_cast(Ty)) { -- cgit v1.1