diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-02-19 11:27:10 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-02-19 13:19:41 +0100 |
commit | b0060c3a7868ef026d95d0cf8a076791ef74f474 (patch) | |
tree | 0150be5e4c416a91c305ea597d07c64cfea3fb55 /llvm/unittests/Support/ErrorTest.cpp | |
parent | 49b307e96d47a74e4aa8f60f3d493eac10849d4b (diff) | |
download | llvm-b0060c3a7868ef026d95d0cf8a076791ef74f474.zip llvm-b0060c3a7868ef026d95d0cf8a076791ef74f474.tar.gz llvm-b0060c3a7868ef026d95d0cf8a076791ef74f474.tar.bz2 |
[lldb] Make comparing RegisterInfo::[alt_]name's pointer value less footy-shooty
Comparing those two `const char *` values relies on the assumption that both
strings were created by a ConstString. Let's check that assumption with an
assert as otherwise this code silently does nothing and that's not great.
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
0 files changed, 0 insertions, 0 deletions