Lines Matching defs:HasStr2
566 bool HasStr2 = getConstantStringInfo(Str2P, Str2);
569 if (HasStr1 && HasStr2)
577 if (HasStr2 && Str2.empty()) // strcmp(x,"") -> *x
597 if (!HasStr1 && HasStr2) {
602 } else if (HasStr1 && !HasStr2) {
643 bool HasStr2 = getConstantStringInfo(Str2P, Str2);
646 if (HasStr1 && HasStr2) {
658 if (HasStr2 && Str2.empty()) // strncmp(x, "", n) -> *x
670 if (!HasStr1 && HasStr2) {
676 } else if (HasStr1 && !HasStr2) {
1176 bool HasStr2 = getConstantStringInfo(CI->getArgOperand(1), ToFindStr);
1179 if (HasStr2 && ToFindStr.empty())
1183 if (HasStr1 && HasStr2) {
1195 if (HasStr2 && ToFindStr.size() == 1) {