| 1089 | } |
| 1090 | |
| 1091 | BfIRValue BfIRConstHolder::CreateConstArrayZero(BfIRType type, int count) |
| 1092 | { |
| 1093 | BfConstantArrayZero* constant = mTempAlloc.Alloc<BfConstantArrayZero>(); |
| 1094 | constant->mConstType = BfConstType_ArrayZero; |
| 1095 | constant->mType = type = type; |
| 1096 | constant->mCount = count; |
| 1097 | auto irValue = BfIRValue(BfIRValueFlags_Const, mTempAlloc.GetChunkedId(constant)); |
| 1098 | |
| 1099 | #ifdef CHECK_CONSTHOLDER |
| 1100 | irValue.mHolder = this; |
| 1101 | #endif |
| 1102 | return irValue; |
| 1103 | } |
| 1104 | |
| 1105 | BfIRValue BfIRConstHolder::CreateConstArrayZero(int count) |
| 1106 | { |
no test coverage detected