Closed
Description
// test.c
// unroll-loops=true
void test_escaping_on_var_before_switch_case_no_crash(int c) {
switch (c) {
int i;
case 0: {
for (i = 0; i < 16; i++) {}
break;
}
}
}
crash dump:
Reached root without finding the declaration of VD
UNREACHABLE executed at /home/xxxxx/Sources/llvm-project-main/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp:248!