search for: slot_typed

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

2017 Oct 14
2
Bug in replaceUsesOfWith: does not keep addrspace consistent in GEP
..."Slot(replaced): " << *Slot << "\n"; } else { Slot = cast<Instruction>(Builder.CreateGEP(Arg2, {Builder.getInt64(1)}, "slot")); } * Value *TypedSlot = Builder.CreateBitCast(Slot, PointerType::get(Builder.getInt64Ty(), 1), "slot_typed"); Value *Load = Builder.CreateLoad(TypedSlot, "Val"); Builder.CreateRet(Load); if (verifyModule(*m) == 1) { errs() << "module has an error: "; verifyModule(*m, &errs()); report_fatal_error("buggy module."); }...