search for: tok_string

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

Did you mean: to_string
2013 Mar 26
0
[LLVMdev] Fwd: Extending Kaleidoscope to support Strings
...* 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 pointer to Val type!"), function AssertOK, file /Users/rcatlin1/lldb/llvm/lib/IR/Instructions.cpp, line 1089. Th...