Skip to content

Commit e87bba9

Browse files
authored
Merge pull request swiftlang#10165 from gottesmm/instructiondestroyer_shouldbe_silinstructionvisitor_not_silvisitor
2 parents 49e6a59 + 8719e1b commit e87bba9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/SIL/SILInstruction.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,11 @@ void SILInstruction::dropAllReferences() {
169169
}
170170

171171
namespace {
172-
class InstructionDestroyer : public SILVisitor<InstructionDestroyer> {
173-
public:
174-
#define VALUE(CLASS, PARENT) void visit##CLASS(CLASS *I) { I->~CLASS(); }
172+
class InstructionDestroyer
173+
: public SILInstructionVisitor<InstructionDestroyer> {
174+
public:
175+
#define INST(CLASS, PARENT, TEXTUALNAME, MEMBEHAVIOR, MAYRELEASE) \
176+
void visit##CLASS(CLASS *I) { I->~CLASS(); }
175177
#include "swift/SIL/SILNodes.def"
176178
};
177179
} // end anonymous namespace

0 commit comments

Comments
 (0)