[all-commits] [llvm/llvm-project] 15972e: [CodeGen] Avoid access after runtime

Vitaly Buka via All-commits all-commits at lists.llvm.org
Wed Mar 30 02:08:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15972e37bad05b516f78f7879efb85521e4501b3
      https://github.com/llvm/llvm-project/commit/15972e37bad05b516f78f7879efb85521e4501b3
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-03-30 (Wed, 30 Mar 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineBasicBlock.h

  Log Message:
  -----------
  [CodeGen] Avoid access after runtime

Insts must be destroyd before xParent
or it can read it with stack like this:
   0 in llvm::MachineInstr::getMF() const MachineInstr.cpp:637:3
   1 in getMF MachineInstr.h:302:50
   2 in removeNodeFromList MachineBasicBlock.cpp:163:32




More information about the All-commits mailing list