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.
1 parent a191795 commit c4e3f41Copy full SHA for c4e3f41
lib/SIL/Parser/ParseSIL.cpp
@@ -2127,8 +2127,14 @@ bool SILParser::parseSILLocation(SILLocation &Loc) {
2127
if (parseInteger(Column, diag::sil_invalid_column_in_sil_location))
2128
return true;
2129
2130
- Loc = RegularLocation(SILLocation::FilenameAndLocation::alloc(Line, Column,
2131
- P.Context.getIdentifier(File).str().data(), SILMod));
+ auto fnl = SILLocation::FilenameAndLocation::alloc(Line, Column,
+ P.Context.getIdentifier(File).str().data(), SILMod);
2132
+
2133
+ Loc = RegularLocation(fnl);
2134
2135
+ if (*fnl == *SILLocation::getCompilerGeneratedLoc())
2136
+ Loc.markAutoGenerated();
2137
2138
return false;
2139
}
2140
0 commit comments