"git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "17674ec8c6631c4b5d645ccf3ad1e39b633095c4"
Stop LoopConvert removing DeclStmts from selection/iteration condition clauses
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
Loading
Please register or sign in to comment