فهرست منبع

Remove union splat

Brian Fiete 1 سال پیش
والد
کامیت
dfd7a13066
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      IDEHelper/Compiler/BfResolvedTypeUtils.cpp

+ 4 - 2
IDEHelper/Compiler/BfResolvedTypeUtils.cpp

@@ -1966,8 +1966,10 @@ BfType* BfTypeInstance::GetUnionInnerType(bool* wantSplat)
 	// Don't allow a float for the inner type -- to avoid invalid loading invalid FP bit patterns during copies
 	// Don't allow a float for the inner type -- to avoid invalid loading invalid FP bit patterns during copies
 	if ((unionInnerType != NULL) && (!makeRaw))
 	if ((unionInnerType != NULL) && (!makeRaw))
 	{
 	{
-		if (wantSplat != NULL)
-			*wantSplat = true;
+		//TODO: How did splats make sense? It breaks CompactList
+
+		//if (wantSplat != NULL)
+		//	*wantSplat = true;
 	}
 	}
 	else
 	else
 	{
 	{