search for: typedslot

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

2017 Oct 14
2
Bug in replaceUsesOfWith: does not keep addrspace consistent in GEP
...t; "\n"; Slot->replaceUsesOfWith(Arg, Arg2); errs() << "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: "; verif...