aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-06-21 23:44:13 +0000
committerDouglas Gregor <dgregor@apple.com>2010-06-21 23:44:13 +0000
commit27b98eae80d1790f22804e5c6c33c2666a97b53e (patch)
treee1bd6d401e7f1de5eabd209148e2143c9e3a7e11 /llvm/lib/Transforms/Utils/CloneModule.cpp
parentc9fec975e6cf021d861bd399612da7656a7907f8 (diff)
downloadllvm-27b98eae80d1790f22804e5c6c33c2666a97b53e.zip
llvm-27b98eae80d1790f22804e5c6c33c2666a97b53e.tar.gz
llvm-27b98eae80d1790f22804e5c6c33c2666a97b53e.tar.bz2
Alter the internal representation of the condition variable in
if/while/switch/for statements to ensure that walking the children of these statements actually works. Previously, we stored the condition variable as a VarDecl. However, StmtIterator isn't able to walk from a VarDecl to a set of statements, and would (in some circumstances) walk beyond the end of the list of statements, cause Bad Behavior. In this change, we've gone back to representing the condition variables as DeclStmts. While not as memory-efficient as VarDecls, it greatly simplifies iteration over the children. Fixes the remainder of <rdar://problem/8104754>. llvm-svn: 106504
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
0 files changed, 0 insertions, 0 deletions