commit | c224d810835890a4ba71f399724c0054c73faf0a | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Tue Apr 05 19:57:03 2016 +0000 |
committer | Lang Hames <lhames@gmail.com> | Tue Apr 05 19:57:03 2016 +0000 |
tree | e65f2d8056a289001ed43e18ea052b7d05101c27 | |
parent | 9b710764b9a34f92a4f13713e5941378da70a4f9 [diff] |
[Support] Add a checked flag to Expected<T>, require checks before access or destruction. This makes the Expected<T> class behave like Error, even when in success mode. Expected<T> values must be checked to see whether they contain an error prior to being dereferenced, assigned to, or destructed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265446 91177308-0d34-0410-b5e6-96231b3b80d8