I'd like to change how error handling is done in the SampleProf code to use the new Error/Expected classes. This will bring make it more consistent with the rest of lib/ProfileData, and will make the code easier to debug and maintain.
My plan is to 1) introduce a soft error tracking class (c.f D20082), 2) start handling any errors we might be dropping now, and finally 3) make the switch from std::error_code to llvm::Error.
Does that plan sound good?