[Lldb-commits] [PATCH] D134493: [lldb][TypeSystemClang] Deduce lldb::eEncodingUint for unsigned enum types
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 27 19:11:01 PDT 2022
shafik added a comment.
Note, in both C and C++ converting a `-1` to unsigned will always result in the max unsigned value e.g.:
#include <iostream>
#include <cstdint>
int main() {
int8_t i8 = -1;
int32_t i32 = -1;
unsigned x = i8;
std::cout << x << "\n";
x = i32;
std::cout << x << "\n";
}
output:
4294967295
4294967295
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134493/new/
https://reviews.llvm.org/D134493
More information about the lldb-commits
mailing list