Hi folk, <br><br>I get the following stack trace and do have any clue how to fix the problem. <br><br>0  opt               0x087ecc99<br>1  opt               0x087ed265<br>2                    0xb7f6a400 __kernel_sigreturn + 0<br>
3  opt               0x086d4198 llvm::LeakDetector::addGarbageObject(llvm::Value const*) + 29<br>4  opt               0x0872945f llvm::Instruction::Instruction(llvm::Type const*, unsigned int, llvm::Use*, unsigned int, llvm::Instruction*) + 109<br>
5  opt               0x083d208b llvm::UnaryInstruction::UnaryInstruction(llvm::Type const*, unsigned int, llvm::Value*, llvm::Instruction*) + 75<br>6  opt               0x0873e46b llvm::CastInst::CastInst(llvm::Type const*, unsigned int, llvm::Value*, llvm::Twine const&, llvm::Instruction*) + 57<br>
7  opt               0x0873124d llvm::BitCastInst::BitCastInst(llvm::Value*, llvm::Type const*, llvm::Twine const&, llvm::Instruction*) + 65<br><br><br><br>I insert extra two instructions to a byte code, the corresponding code is quite simple:<br>
LoadInst* ptrVal = new LoadInst(ptr, "foobar", false, next);<br>CastInst* ptrCast = new BitCastInst(ptrVal, charPtrType, "cast1", next);<br><br>If I comment out the CastInst statement, it runs fine. Any hint what is wrong? <br>
Thanks, <br>Neal<br>