From 75e81e645da08a3c5e5212188b9afd475a2bd5ad Mon Sep 17 00:00:00 2001 From: Joey Gouly Date: Mon, 15 Apr 2013 21:13:33 +0000 Subject: [PATCH] Remove some dead code that has not been used since 2010. llvm-svn: 179558 --- clang/lib/Sema/SemaExpr.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 76330f5cdbdd..cafc42daa8d1 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -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(literalStringStripped)