Skip to content

Commit 190a8ba

Browse files
Fix DFE compilation failure
1 parent 0af8b6a commit 190a8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/IPO/DeadFunctionElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class DeadFunctionAndGlobalElimination {
210210
AliveFunctionsAndTables.insert(global);
211211
for (const SILInstruction &initInst : *global) {
212212
if (auto *fRef = dyn_cast<FunctionRefInst>(&initInst))
213-
ensureAlive(fRef->getReferencedFunction());
213+
ensureAlive(fRef->getReferencedFunction(), "referenced from initializer");
214214
}
215215
}
216216

0 commit comments

Comments
 (0)