aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-11-04 14:21:51 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-11-04 15:26:32 +0000
commit93c2a9ae078daaf1c182472d63200db3783c67d5 (patch)
treeb9a44a074a4f5c4c77f81ce2c43ed4e774d618ea /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentb36cb12a494e13d252f611cc323156bb1cac0291 (diff)
downloadllvm-93c2a9ae078daaf1c182472d63200db3783c67d5.zip
llvm-93c2a9ae078daaf1c182472d63200db3783c67d5.tar.gz
llvm-93c2a9ae078daaf1c182472d63200db3783c67d5.tar.bz2
Use isa<> instead of dyn_cast<> to avoid unused variable warning. NFCI.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 1 insertions, 1 deletions
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<DICompositeType>(Ty))
+ if (isa<DICompositeType>(Ty))
return false;
if (auto *DTy = dyn_cast<DIDerivedType>(Ty)) {