From e517a9745a2e3e02be71972062d3f801495a09f7 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 25 Feb 2021 07:10:14 -0800 Subject: [PATCH] Fixed union inner type calculation --- IDEHelper/Compiler/BfResolvedTypeUtils.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp index 26044546..f95a36c7 100644 --- a/IDEHelper/Compiler/BfResolvedTypeUtils.cpp +++ b/IDEHelper/Compiler/BfResolvedTypeUtils.cpp @@ -1725,8 +1725,6 @@ BfType* BfTypeInstance::GetUnionInnerType(bool* wantSplat) } } - unionSize = BF_ALIGN(unionSize, mInstAlign); - BF_ASSERT(unionInnerType != this); // Don't allow a float for the inner type -- to avoid invalid loading invalid FP bit patterns during copies