瀏覽代碼

Fixed union inner type calculation

Brian Fiete 4 年之前
父節點
當前提交
e517a9745a
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      IDEHelper/Compiler/BfResolvedTypeUtils.cpp

+ 0 - 2
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