[LLVMdev] SwitchInst problem
Rasha Omar
rasha.sala7 at gmail.com
Thu Aug 22 00:59:41 PDT 2013
Hi All,
Value* V;
Value* V2;
BasicBlock * BB;
unsigned j; ///number of cases
.... //insert V , V2, j and BB
SwitchInst* sw= builder.CreateSwitch(V, BB, j);
ConstantInt * CI= dyn_cast<ConstantInt>(V2);
sw-> addCase( CI , BB);
At last step there is
Program received signal SIGSEGV, Segmentation fault.
What is wrong in the code?
Thanks in advance
--
* Rasha Salah Omar
Msc Student at E-JUST
Demonestrator at Faculty of Computers and Informatics
Benha University*
* e-mail: rasha.omar at ejust.edu.eg*
P* Please consider the environment before printing this email.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130822/4946e9de/attachment.html>
More information about the llvm-dev
mailing list