[all-commits] [llvm/llvm-project] c20a80: [ObjC][ARC] Fix UB in ObjCARCOpt with -enable-objc...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Wed Nov 23 02:36:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c20a80092c15c6da5de2e5829be88e2009d5899f
      https://github.com/llvm/llvm-project/commit/c20a80092c15c6da5de2e5829be88e2009d5899f
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

  Changed paths:
    M llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp

  Log Message:
  -----------
  [ObjC][ARC] Fix UB in ObjCARCOpt with -enable-objc-arc-opts=false

When ObjCARCOpt::run() returned early, Changed and CFGChanged were never initialized. CFGChanged is read unconditionally afterwards. This came up in the course of D137942.


  Commit: 63d65d3764ea2fc27e0e1a6054ec42cff6d84158
      https://github.com/llvm/llvm-project/commit/63d65d3764ea2fc27e0e1a6054ec42cff6d84158
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

  Changed paths:
    M clang/test/CodeGenObjCXX/arc-exceptions-seh.mm

  Log Message:
  -----------
  Reland "[CGObjC] Add run line for release mode in test arc-exceptions-seh.mm (NFC)"

This reverts commit a37807ac8a3e9d2880a483940dcd33194f354bf8.

Differential Revision: https://reviews.llvm.org/D137942


Compare: https://github.com/llvm/llvm-project/compare/021e2ad247e6...63d65d3764ea


More information about the All-commits mailing list