std::error_code's assume it isn't an error if the error code is zero.
Fix enum BitcodeError to not define a zero-valued error code.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
While working on PNaCl, I found out that the error code passed to std::error_code must not be zero. If it is zero, the boolean check assumes that an error did not occur. This CL is to fix the corresponding problem in LLVM.
Comment Actions
I think it dropped off Karl's radar. He's on vacation right now, but I could help clang-format/commit it for him today.