llvm-project/lldb/source
Davide Italiano a9d84cb9d8 [IRInterpreter] Fix misevaluation of interpretation expressions with `urem`.
Scalar::MakeUnsigned was implemented incorrectly so it didn't
really change the sign of the type (leaving signed types signed).
This showed up as a misevaluation when IR-interpreting urem but
it's likely to arise in other contexts.

This commit fixes the definition, and adds a test to make
sure this won't regress in future (hopefully).

Fixes rdar://problem/42038760 and LLVM PR38076

Differential Revision:  https://reviews.llvm.org/D49155

llvm-svn: 336872
2018-07-12 00:31:04 +00:00
..
API Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
Breakpoint Add missing constness. 2018-06-27 07:01:07 +00:00
Commands Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
Core [IRInterpreter] Fix misevaluation of interpretation expressions with `urem`. 2018-07-12 00:31:04 +00:00
DataFormatters Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Expression Add a way to load an image using a library name and list of paths. 2018-06-28 20:02:11 +00:00
Host Fix macos build for r335244 2018-06-21 15:40:33 +00:00
Initialization Move ObjectFile initialization out of SystemInitializerCommon 2018-05-24 12:44:18 +00:00
Interpreter Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
Plugins [windows] Fix out-of-memory failure in some of the tests 2018-07-11 22:47:35 +00:00
Symbol Change AddressClass type from 'enum' to 'enum class'. 2018-06-26 13:06:54 +00:00
Target Add a way to load an image using a library name and list of paths. 2018-06-28 20:02:11 +00:00
Utility Refactor parsing of option lists with a raw string suffix. 2018-07-10 20:17:38 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00