<div dir="ltr"><div class="">
<p>For the following code:</p>
<pre><code> Type * type = IntegerType::getInt32Ty(getGlobalContext());
IRBuilder<> builder(BB);
std::set<Value *> Vset;
Value * Vresult=0;
for(std::set<Value*>::iterator Vit=Vset.begin();Vit!=Vset.end();Vit++)
{
Vresult=builder.CreateOr(Vit, Vresult, "WaitOr");
}
</code></pre>
<p><code>Vset</code> is inserted in previous loop by 0 or 1
The error is</p>
<pre><code>error: no matching member function for call to 'CreateOr'
Vresult=builder.CreateOr(Vit, Vresult, "WaitOr");
</code></pre>
<p>Which input is wrong in the <code>CreateOr()</code> ?</p>
</div><br clear="all"><br>-- <br><div dir="ltr"><b style="color:rgb(32,18,77)"><span> </span>Rasha Salah Omar<br><span> </span> Msc Student at E-JUST<br><span> </span> Demonestrator at Faculty of Computers and Informatics<br>
<span> </span> Benha University</b>
<p style="color:rgb(32,18,77);font-size:13px;font-family:arial,helvetica,clean,sans-serif;background-color:transparent;font-style:normal"><b><span> e-mail: <a href="mailto:rasha.omar@ejust.edu.eg" target="_blank">rasha.omar@ejust.edu.eg</a></span></b></p>
<font size="4"><span style="font-family:Arial,Helvetica,sans-serif;font-size:12px;border-collapse:collapse;color:rgb(69,69,69)"><div style="padding:0px;display:block;line-height:normal">
<span style="font-size:20pt;color:rgb(0,176,80);font-family:Webdings">P</span><b><span style="font-size:11pt;color:rgb(0,176,80);font-family:sans-serif"> Please consider the environment before printing this email.</span></b></div>
</span></font><br></div>
</div>