<div dir="ltr"><div dir="ltr">Hi <div><br></div><div>I use the IRBuilder to invoke the createload API to try to create load instructions.</div><div><br></div><div>However, I come across the below assert exception:</div><div><br></div><div>clang-4.0: /home/jmh/Downloads/llvm-4/llvm/lib/IR/Instructions.cpp:1355: llvm::LoadInst::LoadInst(llvm::Type*, llvm::Value*, const char*, bool, llvm::Instruction*): Assertion `Ty == cast<PointerType>(Ptr->getType())->getElementType()' failed.<br></div><div><br></div><div>Does anyone have the same experience? Many Thanks</div><div><br></div><div>Regards</div><div>Muhui</div></div></div>