Skip to content

Commit 4cddd97

Browse files
committed
No else after return
1 parent 42ce245 commit 4cddd97

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/include/llvm/IR/DebugInfoMetadata.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2563,12 +2563,11 @@ class DISubprogram : public DILocalScope {
25632563
FuncImportedEntityT &&FuncIE, FuncUnknownT &&FuncUnknown) {
25642564
if (const auto *LV = dyn_cast<DILocalVariable>(N))
25652565
return FuncLV(LV);
2566-
else if (const auto *L = dyn_cast<DILabel>(N))
2566+
if (const auto *L = dyn_cast<DILabel>(N))
25672567
return FuncLabel(L);
2568-
else if (const auto *IE = dyn_cast<DIImportedEntity>(N))
2568+
if (const auto *IE = dyn_cast<DIImportedEntity>(N))
25692569
return FuncIE(IE);
2570-
else
2571-
return FuncUnknown(N);
2570+
return FuncUnknown(N);
25722571
}
25732572

25742573
/// Returns the scope of subprogram's retainedNodes.

0 commit comments

Comments
 (0)