[clang] Fix ForStmt mustprogress handling
authorAtmn Patel <a335pate@uwaterloo.ca>
Mon, 9 Nov 2020 13:19:44 +0000 (08:19 -0500)
committerAtmn Patel <a335pate@uwaterloo.ca>
Mon, 9 Nov 2020 16:38:06 +0000 (11:38 -0500)
commitfd3cad7a60168b49f7bc160354655d7605847d41
tree8f1863d1a5930628803bd0d4314a6e6e3b1d01a8
parent2ac3a7d0c46fcaed745c40f255b8aed9d1c41c1f
[clang] Fix ForStmt mustprogress handling

D86841 had an error where for statements with no conditional were
required to make progress. This is not true, this patch removes that
line, and adds regression tests.

Differential Revision: https://reviews.llvm.org/D91075
clang/lib/CodeGen/CGStmt.cpp
clang/test/CodeGen/attr-mustprogress-1.c
clang/test/CodeGen/attr-mustprogress-1.cpp