diff options
author | Pete Cooper <peter_cooper@apple.com> | 2016-08-17 22:06:59 +0000 |
---|---|---|
committer | Pete Cooper <peter_cooper@apple.com> | 2016-08-17 22:06:59 +0000 |
commit | 0041888aea503b0a3c08ecf5ca59ea10f6244c5b (patch) | |
tree | 8c45f1ad6fcc6976517c4e3af1e984d86a57859f /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | 9074341618644ad226e95618be2f95b305c1b4ac (diff) | |
download | llvm-0041888aea503b0a3c08ecf5ca59ea10f6244c5b.zip llvm-0041888aea503b0a3c08ecf5ca59ea10f6244c5b.tar.gz llvm-0041888aea503b0a3c08ecf5ca59ea10f6244c5b.tar.bz2 |
Fix reverse to work on const rbegin()/rend().
Duncan found that reverse worked on mutable rbegin(), but the has_rbegin
trait didn't work with a const method. See http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20160815/382890.html
for more details.
Turns out this was already solved in clang with has_getDecl. Copied that and made it work for rbegin.
This includes the tests Duncan attached to that thread, including the traits test.
llvm-svn: 278991
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions