Skip to content

Commit d0344e5

Browse files
Merge pull request #70882 from felipepiovezan/felipe/fix_getscopeoffirstnonmeta
[DebugInfo] Fix getScopeOfFirstNonMetaInstruction
2 parents 2061640 + 6ce2a6f commit d0344e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SIL/IR/SILBasicBlock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ bool SILBasicBlock::hasPhi() const {
441441

442442
const SILDebugScope *SILBasicBlock::getScopeOfFirstNonMetaInstruction() {
443443
for (auto &Inst : *this)
444-
if (Inst.isMetaInstruction())
444+
if (!Inst.isMetaInstruction())
445445
return Inst.getDebugScope();
446446
return begin()->getDebugScope();
447447
}

0 commit comments

Comments
 (0)