diff options
author | Dan Gohman <gohman@apple.com> | 2012-01-14 00:47:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2012-01-14 00:47:44 +0000 |
commit | 4cf362acc17a0e9974f92c43e94dce991dc75c52 (patch) | |
tree | 985bc8b5857c1e229b01435dfe3e514ab74fd8b5 /llvm/lib/Transforms | |
parent | 2f869a3f4f17d99f6b46274a5ddd67ddc2293140 (diff) | |
download | bcm5719-llvm-4cf362acc17a0e9974f92c43e94dce991dc75c52.tar.gz bcm5719-llvm-4cf362acc17a0e9974f92c43e94dce991dc75c52.zip |
Fix an unused variable warning that Chad noticed.
llvm-svn: 148164
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ObjCARC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp index 0cf31486084..756e56579d8 100644 --- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp +++ b/llvm/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<Value>(UUser)) + if (isa<CallInst>(UUser) || isa<InvokeInst>(UUser)) continue; if (isa<BitCastInst>(UUser) || isa<GetElementPtrInst>(UUser) || isa<PHINode>(UUser) || isa<SelectInst>(UUser)) { |