Fix an unused variable warning that Chad noticed.
authorDan Gohman <gohman@apple.com>
Sat, 14 Jan 2012 00:47:44 +0000 (00:47 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 14 Jan 2012 00:47:44 +0000 (00:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148164 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ObjCARC.cpp

index 0cf314860842df640bf4c754f996e5a70bbc6e3f..756e56579d82dca6c97b7b4e8a78c87abe80482d 100644 (file)
@@ -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<Value>(UUser))
+      if (isa<CallInst>(UUser) || isa<InvokeInst>(UUser))
         continue;
       if (isa<BitCastInst>(UUser) || isa<GetElementPtrInst>(UUser) ||
           isa<PHINode>(UUser) || isa<SelectInst>(UUser)) {