[cfe-dev] intermittent lit failure: clang/test/CXX/temp/temp.arg/temp.arg.template/p3-2a.cpp

Johnson, Troy via cfe-dev cfe-dev at lists.llvm.org
Mon Mar 23 10:43:32 PDT 2020


The test fails about 1 in 10 or 20 runs when I execute it via llvm-lit repeatedly in a shell loop.  It encounters a null pointer dereference in this code in clang/lib/AST/StmtProfile.cpp:

void StmtProfiler::VisitConceptSpecializationExpr(
                                           const ConceptSpecializationExpr *S) {
  VisitExpr(S);
  VisitDecl(S->getFoundDecl());
  VisitTemplateArguments(S->getTemplateArgsAsWritten()->getTemplateArgs(),
                         S->getTemplateArgsAsWritten()->NumTemplateArgs);
}

The S->getTemplateArgsAsWritten() call returns null.

I have not been able to determine why the behavior is intermittent.  Is there someone more familiar with this code who has an idea?

-Troy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200323/d950d647/attachment-0001.html>


More information about the cfe-dev mailing list