| 521 | } |
| 522 | |
| 523 | void CodegenAnyVal::SetPtr(llvm::Value* ptr) { |
| 524 | // Set the second pointer value to 'ptr'. |
| 525 | DCHECK(type_.IsStringType() || type_.type == TYPE_FIXED_UDA_INTERMEDIATE |
| 526 | || type_.IsCollectionType() || type_.IsStructType()); |
| 527 | #ifdef __aarch64__ |
| 528 | ptr = builder_->CreatePtrToInt(ptr, codegen_->i64_type()); |
| 529 | #endif |
| 530 | value_ = builder_->CreateInsertValue(value_, ptr, 1, name_); |
| 531 | } |
| 532 | |
| 533 | void CodegenAnyVal::SetLen(llvm::Value* len) { |
| 534 | // Set the high bytes of the first value to 'len'. |
no test coverage detected