Replace dyn_cast with isa when the result isn't used (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Sun, 17 May 2020 19:25:35 +0000 (19:25 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 17 May 2020 23:15:17 +0000 (23:15 +0000)
Fix build warning: unused variable 'BB'

llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp

index d271bca..363b4b5 100644 (file)
@@ -264,7 +264,7 @@ bool InlineAsmLowering::lowerInlineAsm(
 
       OpInfo.CallOperandVal = const_cast<Value *>(Call.getArgOperand(ArgNo++));
 
-      if (const auto *BB = dyn_cast<BasicBlock>(OpInfo.CallOperandVal)) {
+      if (isa<BasicBlock>(OpInfo.CallOperandVal)) {
         LLVM_DEBUG(dbgs() << "Basic block input operands not supported yet\n");
         return false;
       }