[PATCH] D42813: [Debug] Annotate compiler generated range-for loop variables.

Matt Davis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 14 10:37:24 PST 2018


mattd updated this revision to Diff 134263.
mattd added a comment.

- Added a division by 2 instead of the shift, it reads clearer.
- Updated the associated comment, reflecting that we divide by two because the variables we are annotating are within the inner scope of the ranged-based for loop.


https://reviews.llvm.org/D42813

Files:
  include/clang/Sema/Scope.h
  lib/Sema/SemaStmt.cpp
  test/CodeGenCXX/debug-for-range-scope-hints.cpp
  test/CodeGenCXX/debug-info-scope.cpp
  test/CodeGenCXX/vla.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42813.134263.patch
Type: text/x-patch
Size: 7097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180214/a0ee5b05/attachment-0001.bin>


More information about the cfe-commits mailing list