Skip to content

Commit 017260b

Browse files
committed
Skip instructions without source location in dihole verfication
(cherry picked from commit 8d6c55e)
1 parent b04885b commit 017260b

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
@@ -6260,6 +6260,8 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
62606260
// instructions for the loop variable, but in a deeper scope.
62616261
if (isa<IncrementProfilerCounterInst>(SI))
62626262
continue;
6263+
if (!SI.getLoc().hasValidLineNumber())
6264+
continue;
62636265
if (SI.getLoc().getKind() == SILLocation::CleanupKind)
62646266
continue;
62656267
// FIXME: These still leave holes in the scopes. We should make them

0 commit comments

Comments
 (0)