[all-commits] [llvm/llvm-project] 0fd417: [ifs] IFSStub destructor should be virtual

Zero Omega via All-commits all-commits at lists.llvm.org
Mon Jul 10 12:49:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0fd4175907b40fe63131482c162d7e0f76000521
      https://github.com/llvm/llvm-project/commit/0fd4175907b40fe63131482c162d7e0f76000521
  Author: Amirreza Ashouri <ar.ashouri999 at google.com>
  Date:   2023-07-10 (Mon, 10 Jul 2023)

  Changed paths:
    M llvm/include/llvm/InterfaceStub/IFSStub.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list