Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

Anna Zaks via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 9 10:49:50 PDT 2015


zaks.anna accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: lib/StaticAnalyzer/Core/CallEvent.cpp:419
@@ +418,3 @@
+    const Expr *Ex = getCXXThisExpr();
+    while (isa<ImplicitCastExpr>(Ex)) {
+      Ex = cast<ImplicitCastExpr>(Ex)->getSubExpr();
----------------
Use IgnoreParenImpCasts()?


http://reviews.llvm.org/D13099





More information about the cfe-commits mailing list