[PATCH] D119651: [clang] Fix evaluation context type for consteval function calls in instantiations

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 16 05:54:59 PST 2022


erichkeane requested changes to this revision.
erichkeane added a comment.
This revision now requires changes to proceed.

Actually, based on the build bot pre-merge checks, it looks like something during self-build has hit your assert!

https://buildkite.com/llvm-project/premerge-checks/builds/79589#154a5e12-3ef1-4c5b-b644-0f0d5e3e4383

Please see if you can figure out how to deal with whatever situation is happening there.

FAILED: tools/clang/lib/Tooling/ASTNodeAPI.json /var/lib/buildkite-agent/builds/llvm-project/build/tools/clang/lib/Tooling/ASTNodeAPI.json
cd /var/lib/buildkite-agent/builds/llvm-project/build/tools/clang/lib/Tooling && /var/lib/buildkite-agent/builds/llvm-project/build/bin/clang-ast-dump --skip-processing=0 -I /var/lib/buildkite-agent/builds/llvm-project/build/lib/clang/15.0.0/include -I /var/lib/buildkite-agent/builds/llvm-project/clang/include -I /var/lib/buildkite-agent/builds/llvm-project/build/tools/clang/include -I /var/lib/buildkite-agent/builds/llvm-project/build/include -I /var/lib/buildkite-agent/builds/llvm-project/llvm/include -I /usr/include/c++/11 -I /usr/include/x86_64-linux-gnu/c++/11 -I /usr/include/c++/11/backward -I /usr/lib/llvm-13/lib/clang/13.0.1/include -I /usr/local/include -I /usr/include/x86_64-linux-gnu -I /usr/include --json-output-path /var/lib/buildkite-agent/builds/llvm-project/build/tools/clang/lib/Tooling/ASTNodeAPI.json
clang-ast-dump: /var/lib/buildkite-agent/builds/llvm-project/clang/lib/Sema/SemaExpr.cpp:16644: void clang::Sema::PushExpressionEvaluationContext(clang::Sema::ExpressionEvaluationContext, clang::Decl *, ExpressionEvaluationContextRecord::ExpressionKind): Assertion `!(ExprEvalContexts.back().Context == ExpressionEvaluationContext::PotentiallyEvaluated && ExprEvalContexts[ExprEvalContexts.size() - 2].isConstantEvaluated()) && "Can't have an evaluated context within an unevaluated context!"' failed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119651/new/

https://reviews.llvm.org/D119651



More information about the cfe-commits mailing list