summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/sample_test
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-06-20 10:45:29 +0000
committerPavel Labath <labath@google.com>2018-06-20 10:45:29 +0000
commitc7c9d76187281a9bb78518e40b2b587877a1a2b3 (patch)
tree6edc7e146a0e0fca3fa7939343cb4c93d71d7089 /lldb/packages/Python/lldbsuite/test/sample_test
parent2145b13fc92c531d0218963c0dab1fb25722f3de (diff)
downloadbcm5719-llvm-c7c9d76187281a9bb78518e40b2b587877a1a2b3.tar.gz
bcm5719-llvm-c7c9d76187281a9bb78518e40b2b587877a1a2b3.zip
IRInterpreter: fix sign extension of small types (pr37840)
Sign-extension of small types (e.g. short) was not handled correctly. The reason for that was that when we were assigning the a value to the Scalar object, we would accidentally promote the type to int (even though the assignment code in AssignTypeToMatch tried to cast the value to the appropriate type, it would still invoke the "int" version of operator=). Instead, I use the APInt version of operator=, where the bitwidth is specified explicitly. Among other things, this allows us to fold the individual size cases into one. llvm-svn: 335114
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/sample_test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud