diff options
-rw-r--r-- | src/compiler/nir/nir.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index c2e9e6fb2fb..9c478870626 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -526,11 +526,7 @@ typedef struct nir_src { bool is_ssa; } nir_src; -#ifdef __cplusplus -# define NIR_SRC_INIT nir_src() -#else -# define NIR_SRC_INIT (nir_src) { { NULL } } -#endif +#define NIR_SRC_INIT (nir_src) { { NULL } } #define nir_foreach_use(reg_or_ssa_def, src) \ list_for_each_entry(nir_src, src, &(reg_or_ssa_def)->uses, use_link) @@ -553,11 +549,7 @@ typedef struct { bool is_ssa; } nir_dest; -#ifdef __cplusplus -# define NIR_DEST_INIT nir_dest() -#else -# define NIR_DEST_INIT (nir_dest) { { { NULL } } } -#endif +#define NIR_DEST_INIT (nir_dest) { { { NULL } } } #define nir_foreach_def(reg, dest) \ list_for_each_entry(nir_dest, dest, &(reg)->defs, reg.def_link) |