I need to cast const void * to LLVMValRef ,like this
const void * context;
args[0] = LLVMCastPtrToBoolType((void *) context);
I get the following warning.
warning: cast from type ‘const void*’ to type ‘void*’ casts away qualifiers
I need to cast const void * to LLVMValRef ,like this
const void * context;
args[0] = LLVMCastPtrToBoolType((void *) context);
I get the following warning.
warning: cast from type ‘const void*’ to type ‘void*’ casts away qualifiers