[lldb] Fix undefined behavior: left shift of negative value
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 Apr 2022 16:35:46 +0000 (09:35 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 Apr 2022 16:37:31 +0000 (09:37 -0700)
commit73714a3c603c1e0656f138ad8b6ef2c4740c95f3
tree93c40b9bfa28c339cd874a616357f3e1da6aaa88
parenta3d5f1cf5d88dfbbed931951e07f328d5ceba510
[lldb] Fix undefined behavior: left shift of negative value

Fix undefined behavior in AppleObjCRuntimeV2 where we were left shifting
a signed value. This also removes redundant casts of unobfuscated to
uint64_t which it already is.

rdar://91242879

Differential revision: https://reviews.llvm.org/D123098
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp