Skip to content

Commit ffc6e59

Browse files
committed
Replace dyn_cast with isa when the result isn't used (NFC)
Fix build warning: unused variable 'BB'
1 parent 051452b commit ffc6e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/InlineAsmLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool InlineAsmLowering::lowerInlineAsm(
264264

265265
OpInfo.CallOperandVal = const_cast<Value *>(Call.getArgOperand(ArgNo++));
266266

267-
if (const auto *BB = dyn_cast<BasicBlock>(OpInfo.CallOperandVal)) {
267+
if (isa<BasicBlock>(OpInfo.CallOperandVal)) {
268268
LLVM_DEBUG(dbgs() << "Basic block input operands not supported yet\n");
269269
return false;
270270
}

0 commit comments

Comments
 (0)