summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-12-11 12:14:11 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-12-11 13:38:41 +0000
commit2f8155023ad49ca88151d954c1a6d6069b072ca3 (patch)
tree88fe1644940c601d136c5e2ffa901bc5fab7d1d7 /lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp
parentf95ef6a548211ffa6723e4ec923d37359a3bb9e1 (diff)
downloadbcm5719-llvm-2f8155023ad49ca88151d954c1a6d6069b072ca3.tar.gz
bcm5719-llvm-2f8155023ad49ca88151d954c1a6d6069b072ca3.zip
[DebugInfo] Fix printing of DW_LNS_set_isa
The Isa register is a uint8_t, but at least on Windows this is internally an unsigned char, which meant that prior to this patch it got formatted as an ASCII character, rather than a decimal number. This patch fixes this by casting it to a uint64_t before printing. I did it this way instead of using a uint8_t formatter because a) it is simpler, and b) it allows us to change the internal type of Isa in the future without this code breaking. I also took the opportunity to test the printing of the other standard opcodes. Reviewed by: probinson Differential Revision: https://reviews.llvm.org/D71274
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud