diff options
| author | Richard Trieu <rtrieu@google.com> | 2013-10-11 22:16:04 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2013-10-11 22:16:04 +0000 |
| commit | f18e6e87c2fa41c2a891463483603d770a1e58a7 (patch) | |
| tree | 6cf88d1ff088f2b11994e57611249c96d2f5089e /lib/CodeGen/CGExpr.cpp | |
| parent | 627c7f9740dfe9c208543798eccbe5ca23e1ef42 (diff) | |
| download | clang-f18e6e87c2fa41c2a891463483603d770a1e58a7.tar.gz clang-f18e6e87c2fa41c2a891463483603d770a1e58a7.tar.bz2 clang-f18e6e87c2fa41c2a891463483603d770a1e58a7.tar.xz | |
Improve the error message for attempting to build a for range loop using a
function parameter that has array type. Such a parameter will be treated as
a pointer type instead, resulting in a missing begin function error is a
suggestion to dereference the pointer. This provides a different,
more informative diagnostic as well as point to the parameter declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
