Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove implicit call to GetId in ConvertToSampledImagePass.
We replace getting the id of a poitner type with a specific funciton call to FindPointerToType. Also, FindPointerToType is updated to not indirectly call GetId. This leads to a linear search for an existing type in all cases, but it is necessary. Note that this function could have a similar problem. There could be two pointer types with the same pointee and storage class, and the first one will be returned. I have checked the ~20 uses, and they are all used in situations where the id is used to create something new, and it does not have to match an existing type. These will not cause problems. Part of KhronosGroup#5691
- Loading branch information