diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 21:52:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-20 21:52:32 +0000 |
commit | a05b3b5435a130d36798835980c9374636152ecf (patch) | |
tree | b02a04caa7d3b4f760aa3ad75ddbfa0495189e6d /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | |
parent | 0c9773c6d5d452d9fc070859776657df44584bd8 (diff) | |
download | bcm5719-llvm-a05b3b5435a130d36798835980c9374636152ecf.tar.gz bcm5719-llvm-a05b3b5435a130d36798835980c9374636152ecf.zip |
If the range in a for range statement doesn't have a viable begin/end function,
but can be dereferenced to form an expression which does have viable begin/end
functions, then typo-correct the range, even if something else goes wrong with
the statement (such as inaccessible begin/end or the wrong type of loop
variable).
In order to ensure we recover correctly and produce any followup diagnostics in
this case, redo semantic analysis on the for-range statement outside of the
diagnostic trap, after issuing the typo-correction.
llvm-svn: 164323
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp')
0 files changed, 0 insertions, 0 deletions