diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-11 02:27:57 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-11 02:27:57 +0000 |
commit | 6cbd65d84df9a98493b8493536e3f9958f9275f8 (patch) | |
tree | 18c025f6277da9846bc1811bfb6e35da468b1972 /llvm/lib/Support/ToolOutputFile.cpp | |
parent | af9de91fd20c583f2784b225285aa70dc615dabf (diff) | |
download | bcm5719-llvm-6cbd65d84df9a98493b8493536e3f9958f9275f8.tar.gz bcm5719-llvm-6cbd65d84df9a98493b8493536e3f9958f9275f8.zip |
Add a __builtin_addressof that performs the same functionality as the built-in
& operator (ignoring any overloaded operator& for the type). The purpose of
this builtin is for use in std::addressof, to allow it to be made constexpr;
the existing implementation technique (reinterpret_cast to some reference type,
take address, reinterpert_cast back) does not permit this because
reinterpret_cast between reference types is not permitted in a constant
expression in C++11 onwards.
llvm-svn: 186053
Diffstat (limited to 'llvm/lib/Support/ToolOutputFile.cpp')
0 files changed, 0 insertions, 0 deletions