ispc/ispc — Issue #178: simple program with pointers hits assert
Author: mmp
Created: 2012-02-15 03:41:51+00:00
State: open
Labels: bugs

Compiling this program:

```
void foo() {
uniform int * varying ptr = varying new uniform int[10];
ptr[2] = 1;
}
```

causes this assert to hit:

```
Assertion failed: (getOperand(1)->getType()->isPointerTy() && "Ptr must have pointer type!"), function AssertOK, file Instructions.cpp, line 1053.
```