[llvm-profdata] Don't treat non-fatal merge errors as fatal
authorVedant Kumar <vsk@apple.com>
Fri, 17 Nov 2017 21:18:32 +0000 (21:18 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 17 Nov 2017 21:18:32 +0000 (21:18 +0000)
commit188efda585f1da5ab91eedfe75a292bf6b6fd803
tree07ab7ddc23b8dce0acb78bdcb1f434e6669e81ef
parentf413c7852eda73d74e288b4648331677673c043d
[llvm-profdata] Don't treat non-fatal merge errors as fatal

This fixes an issue seen on the coverage bot:
http://lab.llvm.org:8080/green/view/Experimental/job/clang-stage2-coverage-R/1930

Profile merging shouldn't fail if a single counter mismatch is detected.

llvm-svn: 318555
llvm/test/tools/llvm-profdata/Inputs/counter-mismatch-1.proftext
llvm/test/tools/llvm-profdata/threaded-count-mismatch.test
llvm/tools/llvm-profdata/llvm-profdata.cpp