diff --git a/clang/lib/Analysis/BodyFarm.cpp b/clang/lib/Analysis/BodyFarm.cpp --- a/clang/lib/Analysis/BodyFarm.cpp +++ b/clang/lib/Analysis/BodyFarm.cpp @@ -806,7 +806,7 @@ if (!IVar) { Prop = MD->findPropertyDecl(); - IVar = findBackingIvar(Prop); + IVar = Prop ? findBackingIvar(Prop) : nullptr; } if (!IVar || !Prop)