summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2022-05-12 18:00:45 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2022-05-17 10:36:21 +0800
commit452fac9534c00290e92819202d445810e33d0444 (patch)
tree2321ad63dc30a4ea0a047cdeb15393f64ddf4616 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parented2c3218f5badf88cb7897fabf8faa01e8aa2044 (diff)
[Frontend] [Coroutines] Emit error when we found incompatible allocation
function in promise_type According to https://cplusplus.github.io/CWG/issues/2585.html, this fixes https://github.com/llvm/llvm-project/issues/54881 Simply, the clang tried to found (do lookup and overload resolution. Is there any better word to use than found?) allocation function in promise_type and global scope. However, this is not consistent with the standard. The standard behavior would be that the compiler shouldn't lookup in global scope in case we lookup the allocation function name in promise_type. In other words, the program is ill-formed if there is incompatible allocation function in promise type. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D125517
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions