Then there's a bug in the Unix version since the same program on Mac OS X runs without error. - Paul On May 28, 2012, at 10:15 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote:>> When compiled using the clang binaries with MinGW32 and run, I get: >>> Assertion failed: isValidElementType(EltTy) && "Invalid type for pointer element!", file /Users/asl/Projects/llvm/release/3.1/src/lib/VMCore/Type.cpp, line 748 >> Why? > Because there is no void* in LLVM IR world
> Then there's a bug in the Unix version since the same program on Mac OS X runs without error.Most probably the MacOS version was compiled w/o assertions then. There is no "Unix version" of LLVM - all platform specifics are abstracted out in portability layer which does not influence the IR -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
Le 28 mai 2012 à 20:17, Anton Korobeynikov a écrit :>> Then there's a bug in the Unix version since the same program on Mac OS X runs without error. > Most probably the MacOS version was compiled w/o assertions then. > There is no "Unix version" of LLVM - all platform specifics are > abstracted out in portability layer which does not influence the IR >Not to mention that Mac OS X is a UNIX system. -- Jean-Daniel