search for: isvalidargumenttype

Displaying 4 results from an estimated 4 matches for "isvalidargumenttype".

2010 Nov 29
3
[LLVMdev] FunctionType as a function argument
...tion(fName, Type::getInt32Ty(C), cbFPtrTy, Type::getInt8PtrTy(C), (Type *)0)); But then I get an error form LLVM : /home/salomon/AppSRC/LLVM/release_28/lib/VMCore/Type.cpp:456: llvm::FunctionType::FunctionType(llvm::Type const *, std::vector<llvm::Type const *> const &, bool): Assertion `isValidArgumentType(Params[i]) && "Not a valid type for function argument!"' failed. It seems that a FunctionType is not a valide function argument type. Does someone know what am I missing ? Thank you very much for your help. -- -------------- next part -------------- An HTML attachment was s...
2018 Mar 17
1
Migration from 3.8 to 6.0 questions (segfault most concerning)
I'm encountering a few problems in my migration that I haven't yet figured out. `getOrInsertFunction` is generating a SEGFAULT at FunctionType::isValidArgumentType(llvm::Type*).  I'm calling it as:     generic_ptr_ = llvm::PointerType::get( llvm::Type::getInt8Ty(context), 0 );     f_natural_int = llvm::IntegerType::get(context, 64);     module->getOrInsertFunction(         "count_malloc", generic_ptr, f_natural_int, (llvm::Type*)0 ); It ap...
2010 Nov 29
0
[LLVMdev] FunctionType as a function argument
...32Ty(C), cbFPtrTy, Type::getInt8PtrTy(C), (Type *)0)); > > But then I get an error form LLVM : > /home/salomon/AppSRC/LLVM/release_28/lib/VMCore/Type.cpp:456: > llvm::FunctionType::FunctionType(llvm::Type const *, std::vector<llvm::Type > const *> const &, bool): Assertion `isValidArgumentType(Params[i]) && "Not a > valid type for function argument!"' failed. > > It seems that a FunctionType is not a valide function argument type. > Does someone know what am I missing ? > > Thank you very much for your help. > > -- > > > > > __...
2011 Nov 19
2
[LLVMdev] Insert a function call in the code
...t 4]$ opt -load /home/kain/Documents/bishe/llvm-2.8/Release+Asserts/lib/bishe_insert.so -bishe_insert <1.bc> 2.bc opt: Type.cpp:456: llvm::FunctionType::FunctionType(const llvm::Type*, const std::vector<const llvm::Type*, std::allocator<const llvm::Type*> >&, bool): Assertion `isValidArgumentType(Params[i]) && "Not a valid type for function argument!"' failed. 0 opt 0x000000000082f5cf 1 opt 0x000000000083181a 2 libpthread.so.0 0x00000033f460f4c0 3 libc.so.6 0x00000033f42329a5 gsignal + 53 4 libc.so.6 0x00000033f4234185 abort + 3...