<div><div>Hi All,</div><div>I have just started using LLVM .</div><div>i am facing a issue while using ilist container.<br></div><div><br></div><div>Here is a struct with ilist container as its one element.</div><div><br></div>
<div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;">typedef ilist<Instruction *> InstListType;<br></span></span></div><div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"> struct list_node {</span></span></div>
<div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"> int Impact;</span></span></div><div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"> InstListType InstList;</span></span></div>
<div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"><br></span></span></div><div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"> };</span></span></div>
<div><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;">list_node *BB_list=new struct list_node[10];</span></span><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;"><br>
</span></span></div><div><span class="Apple-style-span" style="font-size: 10px; "><span class="Apple-style-span" style="font-style: italic;"><span class="Apple-style-span" style="font-size: small;">Instruction *user= { pointing to some instruction object }</span></span> </span><br>
</div><div><br></div><div>//trying to add instruction pointer to ilist.<br></div><div>// this is where i am getting error. ( please find error file attached).</div><div><span class="Apple-style-span" style="font-size: 10px;"><br>
</span></div><div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-style: italic;">BB_list[index].InstList.push_back(user)</span>;</span><br></div><div><br></div><div>Any thoughts on what's causing this error??</div>
<div><br></div><div> </div><div> Thanks,</div><div>Abhishek</div></div>