Details
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/AST/ASTImporter.cpp | ||
---|---|---|
6782 | dyn_cast_or_null: Import may return nullptr, but if not, the cast should succeed (not a CXXConstructorDecl would be error). |
lib/AST/ASTImporter.cpp | ||
---|---|---|
6782 | Usually, we explicitly check that the imported decl has the same kind as the source one by filtering lookup results or by creating a decl of same kind. So, it's better to assert with cast_or_null in case of kind mismatch. |
cast_or_null?