Lines Matching defs:HasStr2
560 bool HasStr2 = getConstantStringInfo(Str2P, Str2);
563 if (HasStr1 && HasStr2)
571 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x
592 if (!HasStr1 && HasStr2) {
599 } else if (HasStr1 && !HasStr2) {
642 bool HasStr2 = getConstantStringInfo(Str2P, Str2);
645 if (HasStr1 && HasStr2) {
657 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x
669 if (!HasStr1 && HasStr2) {
677 } else if (HasStr1 && !HasStr2) {
1184 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr);
1187 if (HasStr2 && ToFindStr.empty())
1191 if (HasStr1 && HasStr2) {
1203 if (HasStr2 && ToFindStr.size() == 1) {