diff options
author | Angel Garcia Gomez <angelgarcia@google.com> | 2015-11-03 16:31:36 +0000 |
---|---|---|
committer | Angel Garcia Gomez <angelgarcia@google.com> | 2015-11-03 16:31:36 +0000 |
commit | 5b5c94ba2c460f610d3c5e51fe2411eb366a68a2 (patch) | |
tree | 7008a066946a754c005abbd673e436bfa97bce08 /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py | |
parent | b8c3b1523fd75bbb56f4c6ebb30fd6a027e34194 (diff) | |
download | bcm5719-llvm-5b5c94ba2c460f610d3c5e51fe2411eb366a68a2.tar.gz bcm5719-llvm-5b5c94ba2c460f610d3c5e51fe2411eb366a68a2.zip |
Improve more the const-detection in modernize-loop-convert.
Summary: The previous change was focused in detecting when a non-const object was used in a constant way. Looks like I forgot the most important and trivial case: when the object is already constant. Failing to detect this cases results in compile errors, due to trying to bind a constant object to a non-const reference in the range-for statement. This change should fix that.
Reviewers: klimek
Subscribers: alexfh, cfe-commits
Differential Revision: http://reviews.llvm.org/D14282
llvm-svn: 251940
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions