MCPcopy Create free account
hub / github.com/beefytech/Beef / FixValueActualization

Method FixValueActualization

IDEHelper/Compiler/BfModuleTypeUtils.cpp:8249–8259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8247}
8248
8249void BfModule::FixValueActualization(BfTypedValue& typedVal, bool force)
8250{
8251 if (!typedVal.mValue.IsConst())
8252 return;
8253 if ((mBfIRBuilder->mIgnoreWrites) && (!force))
8254 return;
8255 auto constant = mBfIRBuilder->GetConstant(typedVal.mValue);
8256 if (!HasUnactializedConstant(constant, mBfIRBuilder))
8257 return;
8258 typedVal.mValue = ConstantToCurrent(constant, mBfIRBuilder, typedVal.mType, false);
8259}
8260
8261BfTypeInstance* BfModule::GetPrimitiveStructType(BfTypeCode typeCode)
8262{

Callers 2

ResolveMethod · 0.80
LookupIdentifierMethod · 0.80

Calls 2

IsConstMethod · 0.45
GetConstantMethod · 0.45

Tested by

no test coverage detected