]> granicus.if.org Git - clang/commitdiff
Remove some dead code that has not been used since 2010.
authorJoey Gouly <joey.gouly@arm.com>
Mon, 15 Apr 2013 21:13:33 +0000 (21:13 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Mon, 15 Apr 2013 21:13:33 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179558 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 76330f5cdbddb228891897db3d5c09ccada9cd5c..cafc42daa8d1bd5467333e7c212e9f940058d0ea 100644 (file)
@@ -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)