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.
1 parent b217e31 commit 87ecf5cCopy full SHA for 87ecf5c
lib/SILOptimizer/Mandatory/PerformanceDiagnostics.cpp
@@ -810,6 +810,10 @@ class PerformanceDiagnosticsPass : public SILModuleTransform {
810
SmallVector<SILFunction *, 8> constructorsAndDestructors;
811
812
for (SILFunction &function : *module) {
813
+ // There might be SILFunctions without a location, e.g.
814
+ // swift_readAtKeyPath generated by SILGen for keypaths. It's okay to
815
+ // skip the ctor/dtor/method detection logic for those, such functions
816
+ // still end up in the "others" list and are still visited.
817
if (function.hasLocation()) {
818
auto func =
819
function.getLocation().getAsASTNode<AbstractFunctionDecl>();
0 commit comments