aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/comp.h
diff options
context:
space:
mode:
authorEvgeny Shulgin <izaronplatz@gmail.com>2022-02-25 16:55:08 +0100
committerCorentin Jabot <corentinjabot@gmail.com>2022-02-25 17:23:36 +0100
commitc5e1b5e6a99f1ab78dafb54262d8f1fff998cb26 (patch)
treead122eb50770f44f6da98ef39001eb0f53246621 /libcxx/include/__algorithm/comp.h
parente109ce91b8b47fc34fb1301d89b1b8c04b27616b (diff)
downloadllvm-c5e1b5e6a99f1ab78dafb54262d8f1fff998cb26.zip
llvm-c5e1b5e6a99f1ab78dafb54262d8f1fff998cb26.tar.gz
llvm-c5e1b5e6a99f1ab78dafb54262d8f1fff998cb26.tar.bz2
[Clang][Sema] Do not evaluate value-dependent immediate invocations
Value-dependent ConstantExprs are not meant to be evaluated. There is an assert in Expr::EvaluateAsConstantExpr that ensures this condition. But before this patch the method was called without prior check. Fixes https://github.com/llvm/llvm-project/issues/52768 Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D119375
Diffstat (limited to 'libcxx/include/__algorithm/comp.h')
0 files changed, 0 insertions, 0 deletions