LGTM, other than the minor nit. ================ Comment at: lib/Analysis/Consumed.cpp:993 @@ +992,3 @@ + } else { + ReturnType = cast<FunctionDecl>(D)->getCallResultType(); + } ---------------- No need for a cast here. http://llvm-reviews.chandlerc.com/D1590