search for: callannot

Displaying 2 results from an estimated 2 matches for "callannot".

2012 Jul 04
2
[LLVMdev] Bogus assert in VMCore/Instructions.cpp CallInst::Create?
...entPtr(g1, s1_id); Value *v2 =ConstantExpr::getGetElementPtr(g2, s2_id); Value *c1 = ConstantInt::get(tys, 1); Value *c2 = ConstantInt::get(tys, 0); vector<Value*> v; v.push_back(c1); v.push_back(v1); v.push_back(v2); v.push_back(c2); Value *callAnnot = CallInst::Create(annot, v, "", block); return; } When I try and create the CallInst, an assert in VMCore/Instructions.cpp fails, saying that the type of second parameter of the function signature (i8*) does not match the type of the first argument (which is also i8*). I can, in t...
2012 Jul 04
0
[LLVMdev] Bogus assert in VMCore/Instructions.cpp CallInst::Create?
...lementPtr(g2, s2_id); > Value *c1 = ConstantInt::get(tys, 1); > Value *c2 = ConstantInt::get(tys, 0); > > vector<Value*> v; > v.push_back(c1); > v.push_back(v1); > v.push_back(v2); > v.push_back(c2); > > Value *callAnnot = CallInst::Create(annot, v, "", block); > > return; > } > > When I try and create the CallInst, an assert in > VMCore/Instructions.cpp fails, saying that the type of second > parameter of the function signature (i8*) does not match the type of > the first arg...