[llvm-commits] [llvm] r68912 - in /llvm/trunk/examples: CMakeLists.txt Kaleidoscope/ Kaleidoscope/CMakeLists.txt Kaleidoscope/Makefile Kaleidoscope/toy.cpp Makefile

Mike Stump mrs at apple.com
Mon Apr 13 15:41:07 PDT 2009


On Apr 13, 2009, at 3:01 PM, Bill Wendling wrote:
> On Mon, Apr 13, 2009 at 1:59 PM, Mike Stump <mrs at apple.com> wrote:
>> On Apr 12, 2009, at 1:47 PM, Nick Lewycky wrote:
>>> Author: nicholas
>>> Date: Sun Apr 12 15:47:23 2009
>>> New Revision: 68912
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=68912&view=rev
>>> Log:
>>> Add Kaleidoscope to examples
>>
>> I think this causes:
>>
>> llvm/examples/Kaleidoscope/toy.cpp: In function ‘void
>> HandleTopLevelExpression()’:
>> llvm/examples/Kaleidoscope/toy.cpp:1036: warning: ISO C++ forbids
>> casting between pointer-to-function and pointer-to-object
>>
> It does. I looked at it (while fixing other warnings), and I'm not
> sure what the proper fix for that is...

The basic problem, void (*)() != void *.  Most people don't buy into  
that pedanticism from the standard and use void *, even for pointer to  
functions.



More information about the llvm-commits mailing list