diff options
author | Juan A. Suarez Romero <[email protected]> | 2018-09-19 11:27:49 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2018-09-19 11:46:44 +0200 |
commit | 0c82e3603e195e7b0b3ba39caada6d3ff070076f (patch) | |
tree | 28b64c4038f28ad87908cb940174f3209258e309 /src/compiler/nir/nir_deref.c | |
parent | 976046a8d8f9bed8f805d09ac5aebe63b81a71d9 (diff) |
nir: add initializer data to fix MSVC compile error
CC: Jason Ekstrand <[email protected]>
Fixes: 82799a5d1b8 ("nir: Add a small pass to rematerialize derefs
per-block")
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_deref.c')
-rw-r--r-- | src/compiler/nir/nir_deref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 1a3bf4ad206..4a87ee84d8a 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -481,7 +481,7 @@ rematerialize_deref_src(nir_src *src, void *_state) bool nir_rematerialize_derefs_in_use_blocks_impl(nir_function_impl *impl) { - struct rematerialize_deref_state state = { }; + struct rematerialize_deref_state state = { 0 }; nir_builder_init(&state.builder, impl); nir_foreach_block(block, impl) { |