This is an archive of the discontinued LLVM Phabricator instance.

Use an enum value instead of an string
ClosedPublic

Authored by espindola on Jan 17 2018, 3:47 PM.

Details

Reviewers
rnk
rsmith
Summary

The old StringSwitch use was also broken. It assumed that a StringSwitch returns Optional<T> instead of T and was missing a .Default.

Diff Detail

Event Timeline

espindola created this revision.Jan 17 2018, 3:47 PM
espindola retitled this revision from Use an enum value instea of an string to Use an enum value instead of an string.
rnk accepted this revision.Jan 17 2018, 4:02 PM

Looks good!

This revision is now accepted and ready to land.Jan 17 2018, 4:02 PM
espindola closed this revision.Jan 17 2018, 7:12 PM