As a follow up of our nullptr check patches,
https://reviews.llvm.org/D34753
https://reviews.llvm.org/D35414
this patch introduces a nullptr checks on the llvm MallocAllocator class itself.
Differential D42240
[Support] - Check nullptr after allocation with malloc in MallocAllocator kkretzsch on Jan 18 2018, 6:44 AM. Authored by
Details As a follow up of our nullptr check patches, https://reviews.llvm.org/D34753 this patch introduces a nullptr checks on the llvm MallocAllocator class itself.
Diff Detail Event Timeline |
Don't use braces around 1-line ifs.