SymbolFileDWARF::ParseVariableDIE consider all constant variables as "static".
This is incorrect, and causes frame var to fail when printing them.
e.g.
volatile int a;
main() {
{
int b = 3;
a;
}
}const_value variables are more common at -O1/-O2/.., so this wasn't noticed by many.
Fixes rdar://problem/61402307
I also need to craft a testcase. Ideas on how to do this are appreciated
[Sorry for showing up late.]
This seems unintuitive. How is
void f() { static int g_i = 0; }represented in DWARF?