diff options
author | Shilei Tian <i@tianshilei.me> | 2022-01-05 23:04:17 -0500 |
---|---|---|
committer | Shilei Tian <i@tianshilei.me> | 2022-01-05 23:04:29 -0500 |
commit | aab62aab043162a03e2693dca1be2194bccdeee4 (patch) | |
tree | 60c1fee76506796e83ba57f314bd8ea0ff91ffd5 /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp | |
parent | f71e02fa46f8ff2e37dc2fee02a63227b823b292 (diff) | |
download | llvm-aab62aab043162a03e2693dca1be2194bccdeee4.zip llvm-aab62aab043162a03e2693dca1be2194bccdeee4.tar.gz llvm-aab62aab043162a03e2693dca1be2194bccdeee4.tar.bz2 |
[OpenMP][Offloading] Fixed a crash caused by dereferencing nullptr
In function `DeviceTy::getTargetPointer`, `Entry` could be `nullptr` because of
zero length array section. We need to check if it is a valid iterator before
using it.
Reviewed By: ronlieb
Differential Revision: https://reviews.llvm.org/D116716
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp')
0 files changed, 0 insertions, 0 deletions