Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Support/YAMLTraits.cpp | ||
---|---|---|
115 ↗ | (On Diff #77249) | So it seems that any error checking on Input should also check on the Stream itself. It may be less error prone to refactor this check into a single method and turn all the tests into if (hasError()) return; |
lib/Support/YAMLTraits.cpp | ||
---|---|---|
115 ↗ | (On Diff #77249) | That's my feeling too. I did the proposed refactoring, putting the method as private to prevent semantic conflict with the public error() method. |
Comment Actions
This patch seemsmore robust: when a subcomponent reports an error, it may set the parent error_code.