[PATCH] Have LoopConvert use 'auto &&' where necessary

Dmitri Gribenko gribozavr at gmail.com
Wed Mar 6 14:35:41 PST 2013


  Semantically it is OK, 'auto&' will be deduced as 'T&' when operator* returns 'T&&'.  But because operator* returning 'T&&' is weird, it'd be better to skip transformation altogether.

  This change LGTM with that comment added.

http://llvm-reviews.chandlerc.com/D500

BRANCH
  loop_const

ARCANIST PROJECT
  clang-tools-extra



More information about the cfe-commits mailing list