Displaying 1 result from an estimated 1 matches for "instructionsi".
Did you mean:
instructions
2013 Nov 10
1
[LLVMdev] about creating the first value of the storeinst
Dear All
I'm trying to create storeInst using
StoreInst *SI = new StoreInst(val, AI, BB);
AI is an alloca instruction previously 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<...