commit | cc60d7b17de095ac429f5066d0bea80837fabb65 | [log] [tgz] |
---|---|---|
author | Chandler Carruth <chandlerc@gmail.com> | Sun Jul 09 06:12:56 2017 +0000 |
committer | Chandler Carruth <chandlerc@gmail.com> | Sun Jul 09 06:12:56 2017 +0000 |
tree | a20b756e322c65925992f0dac45cf6d81d925299 | |
parent | 7e96a89b3cfa47e30078b0e4bcc38a3d21bc8985 [diff] |
[ADT] Add a default constructor and a bool conversion to function_ref. The internal representation has a natural way to handle this and it seems nicer than having to wrap this in an optional (with its own separate flag). This also matches how std::function works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307490 91177308-0d34-0410-b5e6-96231b3b80d8