aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorEvgeny Shulgin <izaronplatz@gmail.com>2022-06-07 10:51:59 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2022-06-07 10:54:37 +0800
commita4f8590247264b9c3121f48dd5b3db707c934ba2 (patch)
treeaee799777dd13e0220e9c3e28470348263c2e74c /llvm/lib/CodeGen/StackMaps.cpp
parentf9ac5575675e4117c2e097a71ad0f02cab92aa97 (diff)
downloadllvm-a4f8590247264b9c3121f48dd5b3db707c934ba2.zip
llvm-a4f8590247264b9c3121f48dd5b3db707c934ba2.tar.gz
llvm-a4f8590247264b9c3121f48dd5b3db707c934ba2.tar.bz2
[clang] Allow consteval functions in default arguments
We should not mark a function as "referenced" if we call it within a ConstantExpr, because the expression will be folded to a value in LLVM IR. To prevent emitting consteval function declarations, we should not "jump over" a ConstantExpr when it is a top-level ParmVarDecl's subexpression. Fixes https://github.com/llvm/llvm-project/issues/48230 Reviewed By: erichkeane, aaron.ballman, ChuanqiXu Differenitial Revision: https://reviews.llvm.org/D119646
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
0 files changed, 0 insertions, 0 deletions