Searched refs:existingAttr (Results 1 – 2 of 2) sorted by relevance
729 if (auto existingAttr = D->getAttr<ParameterABIAttr>()) { in AddParameterABIAttr() local730 if (existingAttr->getABI() != abi) { in AddParameterABIAttr()732 << getParameterABISpelling(abi) << existingAttr in AddParameterABIAttr()734 existingAttr->isRegularKeywordAttribute()); in AddParameterABIAttr()735 Diag(existingAttr->getLocation(), diag::note_conflicting_attribute); in AddParameterABIAttr()
2737 T *existingAttr = D->getAttr<T>(); in mergeVisibilityAttr() local2738 if (existingAttr) { in mergeVisibilityAttr()2739 typename T::VisibilityType existingValue = existingAttr->getVisibility(); in mergeVisibilityAttr()2742 S.Diag(existingAttr->getLocation(), diag::err_mismatched_visibility); in mergeVisibilityAttr()