[LLVMdev] Crash in CreateShl() method
Rasha Omar
rasha.sala7 at gmail.com
Thu Aug 22 00:37:45 PDT 2013
Hi Tim,
It works
Thanks
On 22 August 2013 08:58, Tim Northover <t.p.northover at gmail.com> wrote:
> > How could this crash be fixed?
>
> What you've basically written is:
> %AI = alloca i32
> %Vresult = store i32 1, i32* %AI
> %res = shl i32 %Vresult, 1
>
> The problem is that stores don't produce values that can be used
> elsewhere (they have type "void"). If you want to shift a variable
> like "AI" in LLVM you have to load it, do the shift and then store it
> again.
>
--
* 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/6f93d3d9/attachment.html>
More information about the llvm-dev
mailing list