[cmo] [aggresive] Don't attach the usableFromInline attribute

in the CMO pass in aggressive mode

Changing the AST mid-pipeline is probably not a good idea.

rdar://173172456
This commit is contained in:
Arnold Schwaighofer
2026-03-23 14:11:02 -07:00
parent eff34d5aa0
commit 72bd56de5b
14 changed files with 88 additions and 12 deletions
@@ -991,6 +991,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
M.setStrictMemorySafety();
if (loadedModuleFile->deferredCodeGen())
M.setDeferredCodeGen();
if (loadedModuleFile->isAggressiveCMOEnabled())
M.setAggressiveCMOEnabled();
if (loadedModuleFile->hasCxxInteroperability()) {
M.setHasCxxInteroperability();
M.setCXXStdlibKind(loadedModuleFile->getCXXStdlibKind());