Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds"
authorAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:34 +0000 (00:43 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:34 +0000 (00:43 +0000)
commitcbb8aa196b8887535f99265469ed00c3a28b4d3e
tree2c22978654f71571f05d7acf7cf612d58af84075
parent137e23d536509103c7940ebb8c12332eb5031d83
Revert "Make -Wstring-plus-int warns even if when the result is not out of bounds"

This reverts commit r349054.

It's causing:

FAILED: tools/clang/bindings/python/tests/CMakeFiles/check-clang-python
FAIL: test_diagnostic_range (tests.cindex.test_diagnostics.TestDiagnostics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
  "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
  line 55, in test_diagnostic_range
      self.assertEqual(len(tu.diagnostics), 1)
      AssertionError: 2 != 1

======================================================================
FAIL: test_diagnostic_warning (tests.cindex.test_diagnostics.TestDiagnostics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
  "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py",
  line 18, in test_diagnostic_warning
      self.assertEqual(len(tu.diagnostics), 2)
      AssertionError: 1 != 2

llvm-svn: 349117
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/string-plus-int.cpp