diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-04-15 21:13:33 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-04-15 21:13:33 +0000 |
commit | 62165c93f529ba3b714c446e61c561abaee81599 (patch) | |
tree | 628fd9846f36629af76191b97d62ec6e859dc5a7 /lib/Sema/SemaExpr.cpp | |
parent | b93fc8ebed158ed5516fd85d11e89fffaf80622b (diff) |
Remove some dead code that has not been used since 2010.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExpr.cpp')
-rw-r--r-- | lib/Sema/SemaExpr.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 76330f5cdb..cafc42daa8 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/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<ObjCEncodeExpr>(literalStringStripped) |