Use file IDs in generated code

Such as force unwraps, as! casts, etc.
This commit is contained in:
Brent Royal-Gordon
2020-07-01 19:02:52 -07:00
parent 0e569f5d9e
commit 745dbef3ef
5 changed files with 9 additions and 12 deletions

View File

@@ -355,7 +355,7 @@ synthesizeStubBody(AbstractFunctionDecl *fn, void *) {
initName->setBuiltinInitializer(staticStringInit);
auto *file = new (ctx) MagicIdentifierLiteralExpr(
MagicIdentifierLiteralExpr::File, loc, /*Implicit=*/true);
MagicIdentifierLiteralExpr::FileID, loc, /*Implicit=*/true);
file->setType(staticStringType);
file->setBuiltinInitializer(staticStringInit);