forked from OSchip/llvm-project
fa58b26a50
If the LoopConvert Transform detects an alias for the loop variable, it attempts to use that name in the resulting range-based for loop while removing the original DeclStmt for the variable. That removal produced bad code when the declaration was in the condition of an if, switch, while, or for stmt. This revision fixes the problem by simply replacing the declaration with a use of the alias variable. llvm-svn: 181242 |
||
---|---|---|
.. | ||
Unit | ||
cpp11-migrate | ||
modularize | ||
remove-cstr-calls | ||
CMakeLists.txt | ||
Makefile | ||
lit.cfg | ||
lit.site.cfg.in |