From: Dan Gohman Date: Wed, 9 Dec 2009 18:48:53 +0000 (+0000) Subject: Reuse the Threshold value to size these containers because it's X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89452f7386540ca83e8991e74f1d74bbe7271922;p=oota-llvm.git Reuse the Threshold value to size these containers because it's currently somewhat convenient for them to have the same value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CaptureTracking.cpp b/lib/Analysis/CaptureTracking.cpp index 007b2827897..10a8b1165df 100644 --- a/lib/Analysis/CaptureTracking.cpp +++ b/lib/Analysis/CaptureTracking.cpp @@ -45,8 +45,8 @@ static int const Threshold = 20; bool llvm::PointerMayBeCaptured(const Value *V, bool ReturnCaptures, bool StoreCaptures) { assert(isa(V->getType()) && "Capture is for pointers only!"); - SmallVector Worklist; - SmallSet Visited; + SmallVector Worklist; + SmallSet Visited; int Count = 0; for (Value::use_const_iterator UI = V->use_begin(), UE = V->use_end();