OSDN Git Service

Avoid deferencing use_begin() if value does not have a use.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 22 Apr 2009 22:45:37 +0000 (22:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 22 Apr 2009 22:45:37 +0000 (22:45 +0000)
commit1abe64663e0865cf9bdc23de734df49acea2b0d4
tree8cf2fb3ad9733301ea675367b367846a4f83d4ba
parent5654613a013b94a92f9ed65e1a2f34e0a8d9cfdf
Avoid deferencing use_begin() if value does not have a use.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll [new file with mode: 0644]