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)) {