aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein.wu@gmail.com>2024-10-28 08:38:56 +0100
committerGitHub <noreply@github.com>2024-10-28 08:38:56 +0100
commite7f422d5c2ea05704eaab2cdd67a8b1ebc55e95b (patch)
tree14581dca6086459ca0041cec9bd1e1a484fc71fd /llvm/lib/CodeGen/MachineOperand.cpp
parentfd85761208b4fe0569e3fde0d11297f7dcd0e48e (diff)
downloadllvm-e7f422d5c2ea05704eaab2cdd67a8b1ebc55e95b.zip
llvm-e7f422d5c2ea05704eaab2cdd67a8b1ebc55e95b.tar.gz
llvm-e7f422d5c2ea05704eaab2cdd67a8b1ebc55e95b.tar.bz2
Add clang::lifetimebound annotation to ArrayRef constructors. (#113547)
This enables clang to detect more dangling issues. ``` ArrayRef<int> func() { constexpr int array[] = {...}; // oops, missing the static return array; // return a dangling reference, bomb. } ``` See #113533.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions