[PATCH] D34568: [Sema] Make BreakContinueFinder handle nested loops.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 23 13:09:24 PDT 2017


efriedma created this revision.

We don't care about break or continue statements that aren't
associated with the current loop, so make sure the visitor
doesn't find them.

Fixes https://bugs.llvm.org/show_bug.cgi?id=32648 .


Repository:
  rL LLVM

https://reviews.llvm.org/D34568

Files:
  lib/Sema/SemaStmt.cpp
  test/Sema/loop-control.c
  test/SemaCXX/warn-loop-analysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34568.103761.patch
Type: text/x-patch
Size: 5370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170623/d79bdbe3/attachment-0001.bin>


More information about the cfe-commits mailing list