Skip to content

Commit 02dfa01

Browse files
committed
debug / hardcoded strings
1 parent dc034b3 commit 02dfa01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/SILOptimizer/IPO/CrossModuleOptimization.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,12 @@ bool CrossModuleOptimization::canSerializeFunction(
509509
M.reclaimUnresolvedLocalArchetypeDefinitions();
510510
return false;
511511
}
512-
if (inst.getModule().getSwiftModule()->getBaseIdentifier().str() == "SwiftSDKCommand") {
512+
if (inst.getModule().getSwiftModule()->getBaseIdentifier().str() == "TSCUtility" &&
513+
inst.getFunction()->getName().contains("ProgressAnimationProtocol") &&
514+
inst.getFunction()->getName().contains("Basics") &&
515+
inst.getFunction()->getName().contains("throttled") &&
516+
inst.getFunction()->getName().contains("interval") &&
517+
inst.getFunction()->getName().contains("Duration")) {
513518
for (SILValue result : inst.getResults()) {
514519
if (!canSerializeType(result->getType())) {
515520
inst.dump();

0 commit comments

Comments
 (0)