Skip to content

Commit 0fd4175

Browse files
Amirreza Ashourizeroomega
authored andcommitted
[ifs] IFSStub destructor should be virtual
This patch makes IFSStub class's destructor virtual to avoid undefined behavior when it points to its child class's object and got deleted. Differential Revision: https://reviews.llvm.org/D154776
1 parent a6ea018 commit 0fd4175

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/InterfaceStub/IFSStub.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ struct IFSStub {
9797
IFSStub() = default;
9898
IFSStub(const IFSStub &Stub);
9999
IFSStub(IFSStub &&Stub);
100+
virtual ~IFSStub() = default;
100101
};
101102

102103
// Create a alias class for IFSStub.

0 commit comments

Comments
 (0)