Make -Wstring-plus-int warns even if when the result is not out of bounds
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Dec 2018 16:06:23 +0000 (16:06 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Dec 2018 16:06:23 +0000 (16:06 +0000)
commit8523c085e7ed663352dfd5f96787691056f6a182
treeaa24484e8eea77da7d898f38f365306fb0a83146
parent4974d75d7cd6c05788c839cc05098e417c15c74c
Make -Wstring-plus-int warns even if when the result is not out of bounds

Summary: Patch by Arnaud Bienner

Reviewers: sylvestre.ledru, thakis

Reviewed By: thakis

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D55382

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