summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-05-06 20:01:43 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-05-06 20:01:43 +0000
commitfa58b26a5093d6545d712fcf02f4b0a7be3f110a (patch)
tree0c6bf53312186a61cae157ae26b5f66bb6b85dca /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h
parent0b7c611f560a2fabc695f9a800a044f6fa9d21f6 (diff)
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
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h')
0 files changed, 0 insertions, 0 deletions