Skip to content

Commit 8d6c55e

Browse files
committed
Skip instructions without source location in dihole verfication
1 parent e51937f commit 8d6c55e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6261,6 +6261,8 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
62616261
// instructions for the loop variable, but in a deeper scope.
62626262
if (isa<IncrementProfilerCounterInst>(SI))
62636263
continue;
6264+
if (!SI.getLoc().hasValidLineNumber())
6265+
continue;
62646266
if (SI.getLoc().getKind() == SILLocation::CleanupKind)
62656267
continue;
62666268
// FIXME: These still leave holes in the scopes. We should make them

0 commit comments

Comments
 (0)