| 8247 | } |
| 8248 | |
| 8249 | void 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 | |
| 8261 | BfTypeInstance* BfModule::GetPrimitiveStructType(BfTypeCode typeCode) |
| 8262 | { |
no test coverage detected