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 90e7595 commit 05dc240Copy full SHA for 05dc240
lib/SILOptimizer/UtilityPasses/DropAllSILPass.cpp
@@ -30,10 +30,12 @@ class DropAllSILPass : public SILModuleTransform {
30
llvm::SmallVector<SILGlobalVariable *, 16> GlobalsToErase;
31
32
for (SILFunction &F : M) {
33
+ F.dropAllReferences();
34
FunctionsToErase.push_back(&F);
35
}
36
37
for (SILGlobalVariable &G : M.getSILGlobals()) {
38
+ G.dropAllReferences();
39
GlobalsToErase.push_back(&G);
40
41
0 commit comments