[PATCH] D65889: [analyzer] CastValueChecker: Model castAs(), getAs()
Csaba Dabis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 11:54:46 PDT 2019
Charusso updated this revision to Diff 214186.
Charusso added a comment.
- The call as `getAsCXXRecordDecl()` sometimes run into an assertion failure, so we need to avoid it:
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp:333:
ExprEngine::createTemporaryRegionIfNeeded():
Assertion `!InitValWithAdjustments.getAs<Loc>() || Loc::isLocType(Result->getType()) || Result->getType()->isMemberPointerType()' failed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65889/new/
https://reviews.llvm.org/D65889
Files:
clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
clang/test/Analysis/cast-value.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65889.214186.patch
Type: text/x-patch
Size: 18319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190808/5d9eadbe/attachment-0001.bin>
More information about the cfe-commits
mailing list