We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e8f1f commit 0226494Copy full SHA for 0226494
clang/lib/StaticAnalyzer/Core/CallEvent.cpp
@@ -756,11 +756,8 @@ const CXXRecordDecl *CXXInstanceCall::getDeclForDynamicType() const {
756
if (!DynType.isValid())
757
return nullptr;
758
759
- QualType Ty = DynType.getType()->getPointeeType();
760
- if (Ty.isNull())
761
- return nullptr;
762
-
763
- return Ty->getAsCXXRecordDecl();
+ assert(!DynType.getType()->getPointeeType().isNull());
+ return DynType.getType()->getPointeeCXXRecordDecl();
764
}
765
766
RuntimeDefinition CXXInstanceCall::getRuntimeDefinition() const {
0 commit comments