| 504 | } |
| 505 | |
| 506 | llvm::Value* CodegenAnyVal::GetPtr() { |
| 507 | // Set the second pointer value to 'ptr'. |
| 508 | DCHECK(type_.IsStringType() || type_.IsCollectionType() || type_.IsStructType()); |
| 509 | llvm::Value* val = builder_->CreateExtractValue(value_, 1, name_); |
| 510 | #ifdef __aarch64__ |
| 511 | val = builder_->CreateIntToPtr(val, codegen_->ptr_type()); |
| 512 | #endif |
| 513 | return val; |
| 514 | } |
| 515 | |
| 516 | llvm::Value* CodegenAnyVal::GetLen() { |
| 517 | // Get the high bytes of the first value. |
no test coverage detected