SILOptimizer: Add some FIXMEs and a cleanup

This commit is contained in:
Slava Pestov
2019-03-13 02:03:12 -04:00
parent 50d6c30edf
commit 5c72a3691c
3 changed files with 4 additions and 2 deletions

View File

@@ -339,6 +339,7 @@ bool ObjectOutliner::optimizeObjectAllocation(
<< ARI->getFunction()->getName() << '\n');
SILModule *Module = &ARI->getFunction()->getModule();
// FIXME: Expansion
assert(!Cl->isResilient(Module->getSwiftModule(),
ResilienceExpansion::Minimal) &&
"constructor call of resilient class should prevent static allocation");
@@ -448,6 +449,7 @@ void ObjectOutliner::replaceFindStringCall(ApplyInst *FindStringCall) {
return;
// FIXME: Expansion
assert(!cacheDecl->isResilient(Module->getSwiftModule(),
ResilienceExpansion::Minimal));