Skip to content

Commit 8ea848a

Browse files
committed
PerformanceDiagnostics: fix missing diagnostics
1 parent edb08da commit 8ea848a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/PerformanceDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ bool PerformanceDiagnostics::visitInst(SILInstruction *inst,
335335
}
336336
case SILInstructionKind::MetatypeInst:
337337
if (metatypeUsesAreNotRelevant(cast<MetatypeInst>(inst)))
338-
break;
338+
return false;
339339
LLVM_FALLTHROUGH;
340340
default:
341341
// We didn't recognize the instruction, so try to give an error message

0 commit comments

Comments
 (0)