This is an archive of the discontinued LLVM Phabricator instance.

Fix enum BitcodeError to not define 0.
ClosedPublic

Authored by kschimpf on Jun 29 2015, 2:11 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

kschimpf updated this revision to Diff 28708.Jun 29 2015, 2:11 PM
kschimpf retitled this revision from to Fix enum BitcodeError to not define 0..
kschimpf updated this object.
kschimpf edited the test plan for this revision. (Show Details)

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.

kschimpf added a subscriber: Unknown Object (MLST).Jun 29 2015, 2:18 PM

Adding llvm-commits

rafael accepted this revision.Jun 30 2015, 11:16 AM
rafael edited edge metadata.

Please git-clang-format the patch. OK with that.

This revision is now accepted and ready to land.Jun 30 2015, 11:16 AM

Any reason why this has not been committed yet?

jvoung edited edge metadata.Jul 10 2015, 12:20 PM

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.

This revision was automatically updated to reflect the committed changes.