[PATCH] D70046: [OpenMP] Use an explicit copy in a range-based for

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 10:06:55 PST 2019


Mordante added a comment.

`OMPMappableExprListClause::const_component_lists_iterator::operator*()` returns an object and not a reference to an object. 
-Wrange-loop-analysis warns to make it more visible the object is a copy and not a reference.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70046/new/

https://reviews.llvm.org/D70046





More information about the cfe-commits mailing list