We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da0bac1 + 75ecee2 commit 5e4bb4bCopy full SHA for 5e4bb4b
lib/IRGen/IRGenSIL.cpp
@@ -828,9 +828,7 @@ emitPHINodesForBBArgs(IRGenSILFunction &IGF,
828
if (!silBB->empty()) {
829
SILInstruction &I = *silBB->begin();
830
auto DS = I.getDebugScope();
831
- // FIXME: This should be an assertion.
832
- if (!DS || (DS->SILFn != IGF.CurSILFn && !DS->InlinedCallSite))
833
- DS = IGF.CurSILFn->getDebugScope();
+ assert(DS && (DS->SILFn == IGF.CurSILFn || DS->InlinedCallSite));
834
IGF.IGM.DebugInfo->setCurrentLoc(IGF.Builder, DS, I.getLoc());
835
}
836
0 commit comments