diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-05-02 18:09:19 +0000 |
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-05-02 18:09:19 +0000 |
| commit | 6edb891c8efd1fb055ffce6611704da3906d68ec (patch) | |
| tree | c0ccc5dc752495e3d8189c130fd93365ef600079 /llvm/lib/LTO/UpdateCompilerUsed.h | |
| parent | 0eace0bae572f667dff0ba7d202f7e211d1b2625 (diff) | |
| download | bcm5719-llvm-6edb891c8efd1fb055ffce6611704da3906d68ec.tar.gz bcm5719-llvm-6edb891c8efd1fb055ffce6611704da3906d68ec.zip | |
[CFLAA] Fix a use-of-invalid-pointer bug.
As shown in the diff, we used to add to CFLAA's cache by doing
`Cache[Fn] = buildSetsFrom(Fn)`. `buildSetsFrom(Fn)` may cause `Cache`
to reallocate its underlying storage, if this happens and `Cache[Fn]`
was evaluated prior to `buildSetsFrom(Fn)`, then we'll store the result
to a bad address.
Patch by Jia Chen.
llvm-svn: 268269
Diffstat (limited to 'llvm/lib/LTO/UpdateCompilerUsed.h')
0 files changed, 0 insertions, 0 deletions

