search for: call_print1

Displaying 1 result from an estimated 1 matches for "call_print1".

Did you mean: call_print
2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
...= ConstantInt::get(getGlobalContext(), APInt(32, StringRef("0"), 10)); const_ptr_7_indices.push_back(const_int32_8); const_ptr_7_indices.push_back(const_int32_8); Constant* const_ptr_7 = ConstantExpr::getGetElementPtr(fname, const_ptr_7_indices); CallInst* call_print1 = CallInst::Create(func_print, const_ptr_7, ""); F->getInstList().insert((Instruction*)CI, call_print1); //insert the call instruction But getting the error on the ConstantExpr::getGetElementPtr() function. opt: /home/arnie/llvm-clang/llvm/include/llvm/Support/Casting.h:194: typena...