[clang] 6220176 - Fix crash in check-mlir due to 08ab8c9af4dd27cb306b449edc9a9c50ed11194a
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 18 19:03:32 PDT 2020
Author: Yaxun (Sam) Liu
Date: 2020-03-18T21:50:00-04:00
New Revision: 62201763c54166a3ee5552975cc3fc06db2d5c6f
URL: https://github.com/llvm/llvm-project/commit/62201763c54166a3ee5552975cc3fc06db2d5c6f
DIFF: https://github.com/llvm/llvm-project/commit/62201763c54166a3ee5552975cc3fc06db2d5c6f.diff
LOG: Fix crash in check-mlir due to 08ab8c9af4dd27cb306b449edc9a9c50ed11194a
Added:
Modified:
clang/lib/Sema/SemaExpr.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index e6afe7a5b421..c9de06ce76cb 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -17425,7 +17425,10 @@ class EvaluatedExprMarker : public UsedDeclVisitor<EvaluatedExprMarker> {
S.MarkDeclRefReferenced(E);
}
- void VisitMemberExpr(MemberExpr *E) { S.MarkMemberReferenced(E); }
+ void VisitMemberExpr(MemberExpr *E) {
+ S.MarkMemberReferenced(E);
+ Visit(E->getBase());
+ }
};
} // namespace
More information about the cfe-commits
mailing list