aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2022-01-05 23:04:17 -0500
committerShilei Tian <i@tianshilei.me>2022-01-05 23:04:29 -0500
commitaab62aab043162a03e2693dca1be2194bccdeee4 (patch)
tree60c1fee76506796e83ba57f314bd8ea0ff91ffd5 /llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
parentf71e02fa46f8ff2e37dc2fee02a63227b823b292 (diff)
downloadllvm-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