forked from OSchip/llvm-project
Remove some dead code that has not been used since 2010.
llvm-svn: 179558
This commit is contained in:
parent
b5717e00c8
commit
75e81e645d
|
@ -7213,17 +7213,6 @@ QualType Sema::CheckCompareOperands(ExprResult &LHS, ExprResult &RHS,
|
|||
}
|
||||
|
||||
if (literalString) {
|
||||
std::string resultComparison;
|
||||
switch (Opc) {
|
||||
case BO_LT: resultComparison = ") < 0"; break;
|
||||
case BO_GT: resultComparison = ") > 0"; break;
|
||||
case BO_LE: resultComparison = ") <= 0"; break;
|
||||
case BO_GE: resultComparison = ") >= 0"; break;
|
||||
case BO_EQ: resultComparison = ") == 0"; break;
|
||||
case BO_NE: resultComparison = ") != 0"; break;
|
||||
default: llvm_unreachable("Invalid comparison operator");
|
||||
}
|
||||
|
||||
DiagRuntimeBehavior(Loc, 0,
|
||||
PDiag(diag::warn_stringcompare)
|
||||
<< isa<ObjCEncodeExpr>(literalStringStripped)
|
||||
|
|
Loading…
Reference in New Issue