<div dir="ltr">Hi All, <br><div><br>Value* V;<br>Value* V2;<br>BasicBlock * BB;<br></div><div>unsigned j; ///number of cases<br></div><div>.... //insert V , V2, j and BB<br></div><div>   SwitchInst* sw= builder.CreateSwitch(V, BB, j);<br>

   ConstantInt * CI=  dyn_cast<ConstantInt>(V2);<br>   sw-> addCase( CI , BB);<br><br></div><div>At last step there is<br>Program received signal SIGSEGV, Segmentation fault.<br><br></div><div>What is wrong in the code?<br>

</div><div><br></div><div>Thanks in advance<br></div><div>-- <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></div>