ispc/ispc — Issue #115: Assertion hits when assigning to global multi-dimensional uniform array
Author: mmp
Created: 2011-10-23 14:30:55+00:00
State: open
Labels: bugs

With this program:

```
#define NA 1
#define NB 3
uniform int a[NA][NB];
int foo() {
int ret;
if (programIndex < NB)
ret = a[0][programIndex];
return ret;
}
```

This assertion hits during the optimization passes:

Assertion failed: (lGetIntValue(ce->getOperand(1)) == 0), function lTraverseConstantExpr, file opt.cpp, line 911.