search for: chrtype

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

Did you mean: chartype
2016 Apr 17
2
Problems with GEP and CallInst
...they shouldn’t), am I doing something wrong with GEP? here’s the code that translates the AST Literal into LLVM IR and creates the GEP (the return value will be passed to the Callee): llvm::Value *ast::StringLiteral::build(llvmir_builder *builder) { TypeRef *strtype = evalType(); TypeRef *chrtype = strtype->getType()->getPointedType(); llvm::ArrayType *arty = llvm::ArrayType::get(chrtype->getIRType(), val.length()+1); if (!strcst) { strcst = new llvm::GlobalVariable(*container, arty,...