r179558 - Remove some dead code that has not been used since 2010.

Joey Gouly joey.gouly at arm.com
Mon Apr 15 14:13:33 PDT 2013


Author: joey
Date: Mon Apr 15 16:13:33 2013
New Revision: 179558

URL: http://llvm.org/viewvc/llvm-project?rev=179558&view=rev
Log:
Remove some dead code that has not been used since 2010.

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=179558&r1=179557&r2=179558&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Apr 15 16:13:33 2013
@@ -7213,17 +7213,6 @@ QualType Sema::CheckCompareOperands(Expr
     }
 
     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)





More information about the cfe-commits mailing list