[embedded] Prefer Module.getOptions().EmbeddedSwift in SIL code

This commit is contained in:
Kuba Mracek
2023-09-27 09:04:02 -07:00
parent c8b02737dc
commit 7c5962b8a7
4 changed files with 9 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ class VTableSpecializer : public SILModuleTransform {
void run() override {
SILModule &module = *getModule();
if (!module.getASTContext().LangOpts.hasFeature(Feature::Embedded)) return;
if (!module.getOptions().EmbeddedSwift) return;
LLVM_DEBUG(llvm::dbgs() << "***** VTableSpecializer\n");