]> granicus.if.org Git - clang/commit
Don't assume that a valid expression for the first part of a for-statement
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 21 Feb 2012 20:01:35 +0000 (20:01 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 21 Feb 2012 20:01:35 +0000 (20:01 +0000)
commite38fa1866e684b99c6c6e359449af9e0b6e83164
treedeb072152dce1b63648b61578dc6ca994e460666
parentf57c413e444b441fa75ae8911d183c19b53bdd56
Don't assume that a valid expression for the first part of a for-statement
is non-null when diagnosing a broken attempt to write a for-range-statement.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseStmt.cpp
test/SemaCXX/for-range-examples.cpp