[PATCH] Fix to PR8880 (clang dies processing a for loop).

Serge Pavlov sepavloff at gmail.com
Sat Jan 18 09:12:04 PST 2014


  Changed implementation according to reviewer's notes.

  Code generation is changed so that condition and increment expressions
  in loop header are considered as if they are inside break/continue
  scope of the loop. Such behavior is more close to GCC in C++ mode.
  In C mode such usage causes GCC compatibility warning.

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

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D2518?vs=6385&id=6518#toc

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  include/clang/Sema/Scope.h
  include/clang/Sema/Sema.h
  lib/CodeGen/CGStmt.cpp
  lib/Parse/ParseStmt.cpp
  lib/Sema/Scope.cpp
  lib/Sema/SemaStmt.cpp
  test/Analysis/dead-stores.c
  test/CodeGen/PR8880.c
  test/Sema/loop-control.c
  test/Sema/loop-control.cpp
  test/Sema/statements.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2518.4.patch
Type: text/x-patch
Size: 21725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140118/40deede2/attachment.bin>


More information about the cfe-commits mailing list