From 8bc2a419fcbc89e7c7460f0eadebac104332caa7 Mon Sep 17 00:00:00 2001 From: James Park Date: Thu, 26 Nov 2020 22:07:32 -0800 Subject: [PATCH] aco: Initialize union within Operand for MSVC Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_ir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index 9854dec..7e74f16 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -770,10 +770,10 @@ public: private: union { + Temp temp; uint32_t i; float f; - Temp temp = Temp(0, s1); - } data_; + } data_ = { Temp(0, s1) }; PhysReg reg_; union { struct { -- 2.7.4