Displaying 3 results from an estimated 3 matches for "void_ptr_type".
2012 May 28
3
[LLVMdev] Windows assertion failure
...m:
> #include <llvm/DerivedTypes.h>
> #include <llvm/LLVMContext.h>
>
> using namespace llvm;
>
> int main( int argc, char const *argv[] ) {
> LLVMContext &ctx = getGlobalContext();
>
> Type *void_type( Type::getVoidTy( ctx ) );
> PointerType *void_ptr_type( void_type->getPointerTo() );
>
> return 0;
> }
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/Ty...
2012 Apr 05
0
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
...rgs,
> Function *dtor ) {
>
> // Allocate object's storage and insert 'this' ptr into ctor args.
> AllocaInst *const obj_ptr = createEntryBlockAlloca( fn, obj_name, obj_type );
> Value *const void_obj_ptr = builder.CreateBitCast( obj_ptr, void_ptr_type );
> ctor_args.insert( ctor_args.begin(), void_obj_ptr );
>
> // Call object's constructor.
> BasicBlock *const normal_blk = BasicBlock::Create( ctx, "normal", fn );
> BasicBlock *const unwind_blk = BasicBlock::Create( ctx, "unwind", fn );
> bu...
2012 Mar 23
2
[LLVMdev] Catching C++ exceptions, cleaning up, rethrowing
On Mar 23, 2012, at 4:29 PM, Paul J. Lucas wrote:
> On Mar 23, 2012, at 3:25 PM, Bill Wendling wrote:
>
>> Let's take your example. You will have code that looks like this:
>>
>> extern "C" void thunk_item_M_delete( void *v_that ) {
>> item *that = 0;
>> try {
>> that = static_cast<item*>( v_that );
>>