summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-06-24 16:02:28 +0200
committerNikita Popov <npopov@redhat.com>2022-06-27 16:50:49 +0200
commitf65c88c42fdd0e46d16fe31737e6627c56de77c3 (patch)
tree5b681678e459ac9b63768a329e8244b888bb6200 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp
parent8fa2e67979e56db3cc511ff1af920b4fa02fb473 (diff)
[GlobalOpt] Fix memset handling in global ctor evaluation (PR55859)
The global ctor evaluator currently handles by checking whether the memset memory is already zero, and skips it in that case. However, it only actually checks the first byte of the memory being set. This patch extends the code to check all bytes being set. This is done byte-by-byte to avoid converting undef values to zeros in larger reads. However, the handling is still not completely correct, because there might still be padding bytes (though probably this doesn't matter much in practice, as I'd expect global variable padding to be zero-initialized in practice). Mostly fixes https://github.com/llvm/llvm-project/issues/55859. Differential Revision: https://reviews.llvm.org/D128532
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp')
0 files changed, 0 insertions, 0 deletions