2
0
Эх сурвалжийг харах

Fixed implicit cast from void to StringView

Brian Fiete 3 жил өмнө
parent
commit
ad35a8a254

+ 0 - 2
IDEHelper/Compiler/BfModule.cpp

@@ -1501,8 +1501,6 @@ BfIRValue BfModule::GetDefaultValue(BfType* type)
 		auto primType = (BfPrimitiveType*)type;
 		return mBfIRBuilder->CreateConst(primType->mTypeDef->mTypeCode, 0.0);	
 	}
-	if (type->IsVoid())
-		return mBfIRBuilder->CreateConstNull(mBfIRBuilder->MapType(type));	
 	return mBfIRBuilder->CreateConstAggZero(mBfIRBuilder->MapType(type));
 }