We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cf1cb3 + f0b0d3f commit f07c72bCopy full SHA for f07c72b
lib/SILOptimizer/IPO/CrossModuleOptimization.cpp
@@ -185,6 +185,10 @@ bool CrossModuleOptimization::canSerializeFunction(
185
if (iter != canSerializeFlags.end())
186
return iter->second;
187
188
+ // Temporarily set the flag to false (to avoid infinite recursion) until we set
189
+ // it to true at the end of this function.
190
+ canSerializeFlags[function] = false;
191
+
192
if (DeclContext *funcCtxt = function->getDeclContext()) {
193
if (!canUseFromInline(funcCtxt))
194
return false;
0 commit comments