[PGO] Handle and report overflow during profile merge for all types of data
[oota-llvm.git] / lib / ProfileData / SampleProf.cpp
index 1b76367f4de25a2da2de6fd0f47a3d102b9e2d9e..9ded757f2b28277cf97e13983a6963d2fb02edc1 100644 (file)
@@ -45,6 +45,8 @@ class SampleProfErrorCategoryType : public std::error_category {
       return "Truncated function name table";
     case sampleprof_error::not_implemented:
       return "Unimplemented feature";
+    case sampleprof_error::counter_overflow:
+      return "Counter overflow";
     }
     llvm_unreachable("A value of sampleprof_error has no message.");
   }