This is an archive of the discontinued LLVM Phabricator instance.

YAML: Assign a value returned by the default constructor to the value in an optional mapping.
ClosedPublic

Authored by arphaman on Jun 16 2015, 4:37 PM.

Details

Summary

This patch ensures that a value that's passed into YAML's IO mapOptional method is going to be assigned a value returned by the default constructor when the appropriate key is not present in the YAML mapping.

The current YAML documentation specifies that this should happen: http://llvm.org/docs/YamlIO.html#default-values

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 27793.Jun 16 2015, 4:37 PM
arphaman retitled this revision from to YAML: Assign a value returned by the default constructor to the value in an optional mapping..
arphaman updated this object.
arphaman edited the test plan for this revision. (Show Details)
arphaman added reviewers: dexonsmith, bob.wilson, bogner.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: Unknown Object (MLST).
This revision was automatically updated to reflect the committed changes.