The CaseStmt constructor now takes an optional SubStmt argument to initialize its SubExprs field with. This fixes an issue where the ASTImporter was constructing a CaseStmt and not setting its SubStmt member, causing a null pointer access when the SubStmt is accessed in the Stmt::stripLabelLikeStatements() function.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Add a test
include/clang/AST/Stmt.h | ||
---|---|---|
697 | I don't think you need this new param. You can create an instance if CaseStmt, then call setSubStmt() and after that return this instance. |
I don't think you need this new param. You can create an instance if CaseStmt, then call setSubStmt() and after that return this instance.