search for: createentryblockallocastr

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

2013 Mar 26
0
[LLVMdev] Fwd: Extending Kaleidoscope to support Strings
...antDataArray::getString(getGlobalContext(), r); } For a test string of "Hello World!", I am trying to create an Alloca * and store the InitVal, which I get from codegen of StringExprAST. uint64_t v(13); APInt d(8, v); Value * ArraySize = ConstantInt::get(getGlobalContext(), d); Alloca = CreateEntryBlockAllocaString(TheFunction, VarName, ArraySize); 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 poin...