Issue 203856
Summary [clang-tidy] `altera-unroll-loops` crashes on for loop with multiple declarations in initializer
Labels clang-tidy, crash-on-valid
Assignees
Reporter zeyi2
    The `altera-unroll-loops` check crashes when analyzing a fully unrolled `for` loop whose init statement declares more than one variable.

Reduced reproducer:

```cpp
void f() {
#pragma unroll
  for (int i = 0, j = 0; i < 10; ++i) {
  }
}
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to