[all-commits] [llvm/llvm-project] 435d44: [VE][NFC] Fix use-after-free in VEInstrInfo

Simon Moll via All-commits all-commits at lists.llvm.org
Wed Dec 1 10:32:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435d44bf8ab3925b85b70c0736841e3c4c667199
      https://github.com/llvm/llvm-project/commit/435d44bf8ab3925b85b70c0736841e3c4c667199
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2021-12-01 (Wed, 01 Dec 2021)

  Changed paths:
    M llvm/lib/Target/VE/VEInstrInfo.cpp

  Log Message:
  -----------
  [VE][NFC] Fix use-after-free in VEInstrInfo

First call getOperand, then erase the MachineInstr. Not the other way
round.

Expected to fix test/CodeGen/VE/VELIntrinsics/lvm.ll

Detected by asan buildbot:

  sanitizer-x86_64-linux-fast
  (https://lab.llvm.org/buildbot/#/builders/5/builds/15384)




More information about the All-commits mailing list