[all-commits] [llvm/llvm-project] 68157f: Fix a crash on valid consteval code.
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Thu Oct 14 12:48:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 68157fe15b238428d0fdbeb38c14afd5bda574da
https://github.com/llvm/llvm-project/commit/68157fe15b238428d0fdbeb38c14afd5bda574da
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2021-10-14 (Thu, 14 Oct 2021)
Changed paths:
M clang/lib/CodeGen/CGExprConstant.cpp
A clang/test/CodeGenCXX/cxx20-consteval-crash.cpp
Log Message:
-----------
Fix a crash on valid consteval code.
Not all constants are emitted within the context of a function, so use
the module's ASTContext instead because 1) that's the same as the
current function ASTContext, and 2) the module can never be null.
Fixes PR50787.
More information about the All-commits
mailing list