diff options
author | Vedant Kumar <vsk@apple.com> | 2016-09-26 17:57:13 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-09-26 17:57:13 +0000 |
commit | 5cd496ba3ab213f0c7258da40f06d6d111d5fd2d (patch) | |
tree | 769c5ac3a722354dee21c8f94aa753ea3e84a8bd /llvm/lib/Support/Statistic.cpp | |
parent | f72ac492ccea2d11c3c0dd10bcdaadec7537f9ce (diff) | |
download | bcm5719-llvm-5cd496ba3ab213f0c7258da40f06d6d111d5fd2d.tar.gz bcm5719-llvm-5cd496ba3ab213f0c7258da40f06d6d111d5fd2d.zip |
[llvm-cov] Silence a warning from the MSVC runtime (NFC)
Rework getLongestCommonPrefixLen() so that it doesn't access string null
terminators. The old version with std::mismatch would do this:
|
v
Strings[0] = ['a', nil]
Strings[1] = ['a', 'a', nil]
^
|
This should silence a warning from the MSVC runtime (PR30515). As
before, I tested this out by preparing a coverage report for FileCheck.
Thanks to Yaron Keren for the report!
llvm-svn: 282422
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
0 files changed, 0 insertions, 0 deletions