aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorFehr Mathieu <mathieu.fehr@gmail.com>2021-09-13 18:15:13 +0000
committerDaniil Suchkov <dsuchkov@azul.com>2021-09-13 19:16:16 +0000
commitb39f6a79ee88ea0c626a467ade032f052c9ce139 (patch)
tree2917071a96b5e2f8c08881832f1c725a3f20adb6 /llvm/lib/Support/APInt.cpp
parent340314c4dcc801d8f493c45cafd79c79c6e8e58e (diff)
downloadllvm-b39f6a79ee88ea0c626a467ade032f052c9ce139.zip
llvm-b39f6a79ee88ea0c626a467ade032f052c9ce139.tar.gz
llvm-b39f6a79ee88ea0c626a467ade032f052c9ce139.tar.bz2
[ADT] Extend EnableIfCallable for callables with incomplete returns
std::is_convertible has no defined behavior when its arguments are incomplete, even if they are equal. In practice, it returns false. Adding std::is_same allows us to use the constructor using a callable, even if the return value is incomplete. We also check the case where we convert a T into a const T. Reviewed By: DaniilSuchkov Differential Revision: https://reviews.llvm.org/D104703 Committer: Daniil Suchkov <dsuchkov@azul.com>
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions