fix declref not writing to result loc

```zig
const a: i32 = 0;
const b: i32 = 1;
const c: i32 = 2;
const d: i32 = 3;

export fn entry(x: bool) i32 {
    return if (x)
        if (x)
            a
        else if (x)
            b
        else
            c
    else
        d;
}
```
0d62c92947Andrew Kelley committed on 6/12/2019, 11:43:24 PMparente6fa2ee
3 files changedLine totals unavailable