search for: assertok

Displaying 7 results from an estimated 7 matches for "assertok".

Did you mean: assert
2013 Aug 28
1
[LLVMdev] Casting and intrinsic function calls
...itial type of i on the log function call is a Float (tested and confirmed) but when I run the code I get- Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file ../llvm/lib/IR/Instructions.cpp, line 1086. Illegal instruction: 4 The error occurs in the CreateCall portion of the intrinsic function. Does anyone know why or of a better way to go about this seemingly simple task? This is my first time using llvm so apologies is something is very wrong. A...
2013 Nov 10
1
[LLVMdev] about creating the first value of the storeinst
...sly created, BB is the basicBlock I want to put instructionsi in. Val is the value to store. I've created val from a genericValue like this: Value* val = ConstantInt::get(getGlobalContext(), Result.IntVal); Result is the genericValue However I keep getting this error: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed. What is wrong about my code? Thanks a million in advance. Regards, Marwa Yusuf Teaching Assistant - Com...
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
...LVMContext& context); }; When I try to execute the output file,I get the following error: Assertion failed: (getOperand(0)->getType() == > cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must > be a pointer to Val type!"), function AssertOK, file Instructions.cpp, line > 1084. > Abort trap: 6 Can you help me resolve it ? Thanks Prakash -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140804/a7b13602/attachment.html>
2008 Jun 28
2
[LLVMdev] need to store the address of a variable
...w AllocaInst(Type::Int32Ty, ConstantInt::get(Type::Int32Ty, 1), name, alloca_point); StoreInst *SI = new StoreInst(variables.inst[i], AD, alloca_point); StoreInst(SI, GEP, alloca_point); the compiler is happy, but I get the following error at run time: Instructions.cpp:904: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed. I hope you understand what I want, and someone knows the right way to do that. Many thanks for your ti...
2013 Mar 26
0
[LLVMdev] Fwd: Extending Kaleidoscope to support Strings
...e); Builder.CreateStore(InitVal, Alloca); I get the following error: tok_string: "Hello World!" Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file /Users/rcatlin1/lldb/llvm/lib/IR/Instructions.cpp, line 1089. Thanks for any guidance. Regards, Richard Catlin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130325/39d3da8c/attachment.html>
2008 Jun 28
0
[LLVMdev] need to store the address of a variable
...s wrong. The last line, "StoreInst(SI, GEP, alloca_point)" is trying to store the result of your first store (which is void) to the place pointed to by GEP. Nick > the compiler is happy, but I get the following error at run time: > > Instructions.cpp:904: void llvm::StoreInst::AssertOK(): Assertion > `getOperand(0)->getType() == > cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be > a pointer to Val type!"' failed. > > I hope you understand what I want, and someone knows the right way to do that....
2020 Feb 27
3
How to set DebugLoc when using IRBuilder's CreateCall ?
Hi I want to insert some functions into the llvm bitcode ir files. So I use IRBuilder and CreateCall(). But it how error : inlinable function call in a function with debug info must have a !dbg location. I don't know what DebugLoc should I give the new CallInst to setDebugLoc. I Create this CallInst , so this CallInst doesn't hava so-called "DebugLoc" mapping to the source