Commit 0fd41759 authored by Amirreza Ashouri's avatar Amirreza Ashouri Committed by Haowei Wu
Browse files

[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
parent a6ea0185
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ struct IFSStub {
  IFSStub() = default;
  IFSStub(const IFSStub &Stub);
  IFSStub(IFSStub &&Stub);
  virtual ~IFSStub() = default;
};

// Create a alias class for IFSStub.