[clang][dataflow][NFC] Convert mutable vector references to ArrayRef
authorEric Li <li.zhe.hua@gmail.com>
Thu, 4 Aug 2022 15:56:10 +0000 (11:56 -0400)
committerEric Li <li.zhe.hua@gmail.com>
Thu, 4 Aug 2022 17:12:37 +0000 (13:12 -0400)
commit18034aee63eeac673496a88d9e90c8dd73d15927
tree6f9faa5ecd3dec0432c7130e7740a811fce95899
parent0eb7d86f5873ce897894339a3cc5bc69ca507bee
[clang][dataflow][NFC] Convert mutable vector references to ArrayRef

`transferBlock` and `computeBlockInputState` only read the
`BlockStates` vector for the predecessor block(s), and do not need to
mutate any of the contents. Only `runTypeErasedDataflowAnalysis`
writes into the `vector`, so simply down to an `ArrayRef`.
clang/include/clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp