Fix sign extension handling in DumpEnumValue
authorFrederic Riss <friss@apple.com>
Tue, 8 Oct 2019 17:59:02 +0000 (17:59 +0000)
committerFrederic Riss <friss@apple.com>
Tue, 8 Oct 2019 17:59:02 +0000 (17:59 +0000)
commit5d415b706f678108fa7f5dca7ade588cd8da24eb
tree485ee30af66501d2092cc72cb7bb8f37555551cc
parent085328eeeeba63ab3ef2d59f1bb8fa83ca069d33
Fix sign extension handling in DumpEnumValue

When an enumerator has an unsigned type and its high bit set, the
code introduced in r374067 would fail to match it due to a sign
extension snafu. This commit fixes this aspec of the code and should
fix the bots.

I think it's not a complete fix though, I'll add more test coverage
and additional tweaks in a follow-up commit.

llvm-svn: 374095
lldb/source/Symbol/ClangASTContext.cpp