Put a threshold on the number of users PointerMayBeCaptured
authorDan Gohman <gohman@apple.com>
Tue, 8 Dec 2009 23:59:12 +0000 (23:59 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 8 Dec 2009 23:59:12 +0000 (23:59 +0000)
commit8456d60becd2b502e3d6ebf124ea324ec5d1c108
tree3a261d0cd0079ef49ed826805492c98423c9813e
parent43678f41a37c077f28517c2e4889cca88cada6ce
Put a threshold on the number of users PointerMayBeCaptured
examines; fall back to a conservative answer if there are
more. This works around some several compile time problems
resulting from BasicAliasAnalysis calling PointerMayBeCaptured.

The value has been chosen arbitrarily.

This fixes rdar://7438917 and may partially address PR5708.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CaptureTracking.cpp