[IPO] AAFunctionReachabilityFunction.updateImpl - reduce AAReachability scope. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 25 Feb 2022 14:42:31 +0000 (14:42 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 25 Feb 2022 14:42:31 +0000 (14:42 +0000)
commit3b422455ddeb424e6c771de822889c3c352bd2ac
treeb1d7d3eaa67582d7b0dc49c21faa9669a1f3cb10
parent27d39e4da0b45a93a16f932be66a3607cba1d116
[IPO] AAFunctionReachabilityFunction.updateImpl - reduce AAReachability scope. NFCI.

We already have a check for !InstQueries.empty(), so move the for-range over InstQueries inside to avoid the AAReachability uninitialized variable static analysis warnings.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp