|
@@ -2044,7 +2044,7 @@ void ExprEngine::VisitMemberExpr(const MemberExpr *M, ExplodedNode *Pred,
|
|
|
if (!M->isGLValue()) {
|
|
|
assert(M->getType()->isArrayType());
|
|
|
const ImplicitCastExpr *PE =
|
|
|
- dyn_cast<ImplicitCastExpr>((*I)->getParentMap().getParent(M));
|
|
|
+ dyn_cast<ImplicitCastExpr>((*I)->getParentMap().getParentIgnoreParens(M));
|
|
|
if (!PE || PE->getCastKind() != CK_ArrayToPointerDecay) {
|
|
|
llvm_unreachable("should always be wrapped in ArrayToPointerDecay");
|
|
|
}
|