| commit | c20b3383b78473fdfb958ebfe15227bded79ba78 | [log] [tgz] |
|---|---|---|
| author | Matthias Braun <matze@braunis.de> | Thu Jul 20 01:30:39 2017 +0000 |
| committer | Matthias Braun <matze@braunis.de> | Thu Jul 20 01:30:39 2017 +0000 |
| tree | fce0056e354337b5855270a434d6dee9b777b3cf | |
| parent | 36a1c17dffa6f2f2bddf9d7974849e9ecee42916 [diff] |
Support, IR, ADT: Check nullptr after allocation with malloc/realloc or calloc As a follow up of the bad alloc handler patch, this patch introduces nullptr checks on pointers returned from the malloc/realloc/calloc functions. In addition some memory size assignments are moved behind the allocation of the corresponding memory to fulfill exception safe memory management (RAII). patch by Klaus Kretzschmar Differential Revision: https://reviews.llvm.org/D35414 llvm-svn: 308576