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 {
687
687
: SILLocation(D, MandatoryInlinedKind, F) {}
688
688
MandatoryInlinedLocation (SourceLoc L, unsigned F)
689
689
: SILLocation(L, MandatoryInlinedKind, F) {}
690
+ MandatoryInlinedLocation (DebugLoc L, unsigned F)
691
+ : SILLocation(L, MandatoryInlinedKind, F) {}
690
692
};
691
693
692
694
// / 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) {
217
217
if (L.isInTopLevel ())
218
218
return MandatoryInlinedLocation::getModuleLocation (L.getSpecialFlags ());
219
219
220
+ if (L.isDebugInfoLoc ())
221
+ return MandatoryInlinedLocation (L.getDebugInfoLoc (), L.getSpecialFlags ());
222
+
220
223
llvm_unreachable (" Cannot construct Inlined loc from the given location." );
221
224
}
222
225
You can’t perform that action at this time.
0 commit comments