Disallow conversions from function pointers to void*.
authorEric Fiselier <eric@efcs.ca>
Fri, 1 May 2015 01:49:37 +0000 (01:49 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 1 May 2015 01:49:37 +0000 (01:49 +0000)
commit65ace9daa36051aeeb8140bce8e154c61374938f
tree159b25b6309f408bec8c6e218e98bb5cd0e60e05
parentf43d8e1cce7a5bfd4e464ea83647b4b13c8154ad
Disallow conversions from function pointers to void*.

Function pointers and member function pointers cannot be converted to void*.
libc++abi incorrectly allows this conversion for function pointers.

Review URL: http://reviews.llvm.org/D8811

llvm-svn: 236299
libcxxabi/src/private_typeinfo.cpp
libcxxabi/test/catch_function_01.pass.cpp