| 46 | } |
| 47 | |
| 48 | uint32_t Pass::GetPointeeTypeId(const Instruction* ptrInst) const { |
| 49 | const uint32_t ptrTypeId = ptrInst->type_id(); |
| 50 | const Instruction* ptrTypeInst = get_def_use_mgr()->GetDef(ptrTypeId); |
| 51 | return ptrTypeInst->GetSingleWordInOperand(kTypePointerTypeIdInIdx); |
| 52 | } |
| 53 | |
| 54 | Instruction* Pass::GetBaseType(uint32_t ty_id) { |
| 55 | Instruction* ty_inst = get_def_use_mgr()->GetDef(ty_id); |
no test coverage detected