Skip to content

Commit f42025c

Browse files
committed
[SPIRV] Fix -Wunused-but-set-variable. NFC
1 parent a1fa43d commit f42025c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVMergeRegionExitTargets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SPIRVMergeRegionExitTargets : public FunctionPass {
106106
const std::unordered_set<BasicBlock *> ToReplace,
107107
BasicBlock *NewTarget) {
108108
auto *T = BB->getTerminator();
109-
if (auto *RI = dyn_cast<ReturnInst>(T))
109+
if (isa<ReturnInst>(T))
110110
return;
111111

112112
if (auto *BI = dyn_cast<BranchInst>(T)) {

0 commit comments

Comments
 (0)