Here is my buggy line:
Code: Alles auswählen
Constant* strVal = ConstantExpr::getGetElementPtr(Type::getInt8PtrTy(ctx), GVStr, indices, true);
Code: Alles auswählen
Constant* strVal = ConstantExpr::getGetElementPtr(0, GVStr, indices, true);
Code: Alles auswählen
if (!Ty)
Ty = cast<PointerType>(C->getType()->getScalarType())->getElementType();