mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Remove IRGenModule::CurSourceFile
This commit is contained in:
@@ -1585,12 +1585,6 @@ void IRGenModule::emitSILFunction(SILFunction *f) {
|
||||
return;
|
||||
|
||||
PrettyStackTraceSILFunction stackTrace("emitting IR", f);
|
||||
llvm::SaveAndRestore<SourceFile *> SetCurSourceFile(CurSourceFile);
|
||||
if (auto dc = f->getModule().getAssociatedContext()) {
|
||||
if (auto sf = dc->getParentSourceFile()) {
|
||||
CurSourceFile = sf;
|
||||
}
|
||||
}
|
||||
IRGenSILFunction(*this, f).emitSILFunction();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user