diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2024-10-28 08:38:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 08:38:56 +0100 |
commit | e7f422d5c2ea05704eaab2cdd67a8b1ebc55e95b (patch) | |
tree | 14581dca6086459ca0041cec9bd1e1a484fc71fd /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | fd85761208b4fe0569e3fde0d11297f7dcd0e48e (diff) | |
download | llvm-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