search for: typeinfrontofthestream

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

2013 Oct 10
0
[LLVMdev] Illegal BitCast assertion failed
...I thought I could create a BitCastInst, in order to cast a pointer from any type to void*, and then back, and insert it before calling write, or after calling read. And so I did like the example below // Let Func be an llvm::Function* that represents read, CArgs contain an integer constant, and // typeInFrontOfTheStream be an llvm::Type* that represents the type of the variable // available as the next read from the stream llvm::CallInst *consume = llvm::CallInst::Create(Func, CArgs); llvm::BitCastInst *cbi = new llvm::BitCastInst(consume, typeInFrontOfTheStream->getPointerTo()); For the first example when r...