File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -687,6 +687,8 @@ class MandatoryInlinedLocation : public SILLocation {
687687 : SILLocation(D, MandatoryInlinedKind, F) {}
688688 MandatoryInlinedLocation (SourceLoc L, unsigned F)
689689 : SILLocation(L, MandatoryInlinedKind, F) {}
690+ MandatoryInlinedLocation (DebugLoc L, unsigned F)
691+ : SILLocation(L, MandatoryInlinedKind, F) {}
690692};
691693
692694// / Used on the instruction performing auto-generated cleanup such as
Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ MandatoryInlinedLocation::getMandatoryInlinedLocation(SILLocation L) {
217217 if (L.isInTopLevel ())
218218 return MandatoryInlinedLocation::getModuleLocation (L.getSpecialFlags ());
219219
220+ if (L.isDebugInfoLoc ())
221+ return MandatoryInlinedLocation (L.getDebugInfoLoc (), L.getSpecialFlags ());
222+
220223 llvm_unreachable (" Cannot construct Inlined loc from the given location." );
221224}
222225
You can’t perform that action at this time.
0 commit comments