Reapply [ADT] function_ref's constructor is unavailable if the argument is not callable.
authorSam McCall <sam.mccall@gmail.com>
Wed, 7 Oct 2020 14:37:53 +0000 (16:37 +0200)
committerSam McCall <sam.mccall@gmail.com>
Wed, 7 Oct 2020 16:31:12 +0000 (18:31 +0200)
commitb953a01b2cd04263c878292c609686647be396ad
tree42d6cf7784b23727598d6230a46608ce22859166
parentff6e4441b93953efb2c52995e79e211a49ffac06
Reapply [ADT] function_ref's constructor is unavailable if the argument is not callable.

This reverts commit 281703e67ffaee8e26efef86e0df3e145477f4cb.

GCC 5.4 bugs are worked around by avoiding use of variable templates.

Differential Revision: https://reviews.llvm.org/D88977
llvm/include/llvm/ADT/STLExtras.h
llvm/lib/AsmParser/LLParser.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/unittests/ADT/FunctionRefTest.cpp