From: Dan Gohman Date: Sat, 14 Jan 2012 00:47:44 +0000 (+0000) Subject: Fix an unused variable warning that Chad noticed. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=92180988a4495c9c41ff2d19f6e700cef0bf0b2c;p=oota-llvm.git Fix an unused variable warning that Chad noticed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148164 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index 0cf31486084..756e56579d8 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -616,7 +616,7 @@ static bool DoesObjCBlockEscape(const Value *BlockPtr) { const User *UUser = *UI; // Special - Use by a call (callee or argument) is not considered // to be an escape. - if (ImmutableCallSite CS = cast(UUser)) + if (isa(UUser) || isa(UUser)) continue; if (isa(UUser) || isa(UUser) || isa(UUser) || isa(UUser)) {