Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use AttributeList::removeParamAttributes (KhronosGroup#1795)
AttributeList::removeParamAttributes function sets attribute at specified index empty so that return value of AttributeList::getNumAttrSet() keeps unchanged after that call. When call BuiltinCallMutator::removeArg function, there is assert failure on BuiltinCallMutator::doConversion() since new CallInst removed arg but still holds attribute of that removed arg.
- Loading branch information