[ObjC][ARC] Fix UB in ObjCARCOpt with -enable-objc-arc-opts=false
authorStefan Gränitz <stefan.graenitz@gmail.com>
Wed, 23 Nov 2022 10:19:13 +0000 (11:19 +0100)
committerStefan Gränitz <stefan.graenitz@gmail.com>
Wed, 23 Nov 2022 10:30:39 +0000 (11:30 +0100)
commitc20a80092c15c6da5de2e5829be88e2009d5899f
tree37f46d3f0aa451eee727c1d797122ca5b7609f22
parent021e2ad247e6a72889f0c987948ea4023b487a4d
[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.
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp