[llvm] r334453 - Fix a warning issued by clang.
Wei Mi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 16:09:04 PDT 2018
Author: wmi
Date: Mon Jun 11 16:09:04 2018
New Revision: 334453
URL: http://llvm.org/viewvc/llvm-project?rev=334453&view=rev
Log:
Fix a warning issued by clang.
Modified:
llvm/trunk/lib/ProfileData/SampleProfReader.cpp
Modified: llvm/trunk/lib/ProfileData/SampleProfReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/SampleProfReader.cpp?rev=334453&r1=334452&r2=334453&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/SampleProfReader.cpp (original)
+++ llvm/trunk/lib/ProfileData/SampleProfReader.cpp Mon Jun 11 16:09:04 2018
@@ -497,7 +497,7 @@ std::error_code SampleProfileReaderBinar
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>();
More information about the llvm-commits
mailing list