diff options
| author | Philip Reames <preames@rivosinc.com> | 2022-07-19 11:42:55 -0700 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2022-07-20 05:35:23 -0700 |
| commit | 523a526a024fb2835c998d1c054698cc16da87f4 (patch) | |
| tree | 3dedb67ec816010029469e20a7d5363788a22241 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp | |
| parent | f8c13754af55c1dcee3ee0a57580b43c422662c4 (diff) | |
[LV] Fix miscompile due to srem/sdiv speculation safety condition
An srem or sdiv has two cases which can cause undefined behavior, not just one. The existing code did not account for this, and as a result, we miscompiled when we encountered e.g. a srem i64 %v, -1 in a conditional block.
Instead of hand rolling the logic, just use the utility function which exists exactly for this purpose.
Differential Revision: https://reviews.llvm.org/D130106
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp')
0 files changed, 0 insertions, 0 deletions
