forked from OSchip/llvm-project
61af48ce4e
Loop convert's variable name aliasing may cause issues if the variable is declared as a value (copy). The converted loop will declare the variable as a reference which may inadvertently cause modifications to the container if it were used and modified as a temporary copy. This is fixed by preserving the reference or value qualifiers of the aliased variable. That is, if the variable was declared as a value the loop variable will also be declared as a value and similarly for references. Fixes: PR15600 Author: Jack Yang <jack.yang@intel.com> llvm-svn: 178485 |
||
---|---|---|
.. | ||
Inputs | ||
array.cpp | ||
confidence.cpp | ||
dependency.cpp | ||
iterator.cpp | ||
macro_problem.cpp | ||
naming-alias.cpp | ||
naming-conflict.cpp | ||
negative-iterator.cpp | ||
negative-multi-end-call.cpp | ||
negative-pseudoarray-extra.cpp | ||
negative-pseudoarray.cpp | ||
negative.cpp | ||
nesting.cpp | ||
nocompile.cpp | ||
pseudoarray.cpp | ||
single-iterator.cpp |