Fix a warning issued by clang.

llvm-svn: 334453
This commit is contained in:
Wei Mi 2018-06-11 23:09:04 +00:00
parent 0af77dae16
commit c6b96c8db2

View File

@ -497,7 +497,7 @@ std::error_code SampleProfileReaderBinary::readHeader() {
if (std::error_code EC = Magic.getError())
return EC;
else if (std::error_code EC = verifySPMagic(*Magic))
return sampleprof_error::bad_magic;
return EC;
// Read the version number.
auto Version = readNumber<uint64_t>();