Skip to content

Commit 2dd6954

Browse files
committed
Bugfix. The previous debug scope is not necessarily the function scope
1 parent eea18a0 commit 2dd6954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/SerializeSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ void SILSerializer::writeSILBasicBlock(const SILBasicBlock &BB) {
698698
unsigned abbrCode = SILAbbrCodes[SILBasicBlockLayout::Code];
699699
SILBasicBlockLayout::emitRecord(Out, ScratchRecord, abbrCode, Args);
700700

701-
const SILDebugScope *Prev = BB.getParent()->getDebugScope();
701+
const SILDebugScope *Prev = nullptr;
702702
auto &SM = BB.getParent()->getModule().getSourceManager();
703703
for (const SILInstruction &SI : BB) {
704704
if (SerializeDebugInfoSIL) {

0 commit comments

Comments
 (0)