<div dir="ltr"><div><div><div><div><div><div>Hi, <br>i want to get the address in memory of an instruction pointer and use it as a key in my tables.<br></div><div>i iterate over the instructions in LLVM IR like this:<br>for (Module::iterator fi = Mod->begin(), fi_end = Mod->end(); fi != fi_end; ++fi) {<br>
    for (inst_iterator I = inst_begin(fi), E = inst_end(fi); I != E; ++I) { <br></div><div>            Instruction *ii = dyn_cast<Instruction>(&*I);<br>            errs() << &ii << "\n";<br>
   }<br></div><div><br></div></div></div>but i get the same address for every instruction, eg 0xbfc979fc<br></div>Why is this happening and how can i get the rigth address?<br><br></div>Thanks, <br><br></div>Eirini<br></div>