aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-08-14 15:03:05 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-08-14 15:03:05 +0000
commit9ca41bad635d3f582b8f4874f11a79e57823b16f (patch)
treea249bfdf33e7a8320c861bbe00fa3c229aaab079 /lib/Transforms/Utils
parent4a472711c76faa15bdb773de9c542af0f672f6f6 (diff)
downloadexternal_llvm-9ca41bad635d3f582b8f4874f11a79e57823b16f.zip
external_llvm-9ca41bad635d3f582b8f4874f11a79e57823b16f.tar.gz
external_llvm-9ca41bad635d3f582b8f4874f11a79e57823b16f.tar.bz2
Replace two for loops with while(!X->use_empty()) loops. This prevents
invalidating the iterator by deleting the current use. This fixes a segfault on 64 bit linux reported in PR2675. Also remove an unneeded if. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
0 files changed, 0 insertions, 0 deletions