[LLVMdev] How to assign undef value to a variable
Chayan Sarkar
chayan.ju at gmail.com
Mon Jun 28 01:38:51 PDT 2010
Thanks everyone for your suggestions.
Chayan
On Mon, Jun 28, 2010 at 12:34 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Chayan,
>
>> Can any one tell me how to assign 'undef' to variable? I want to
>> assign each variable an undef, immediately after the alloca
>> instruction.
>
> by default an AllocaInst starts off with the memory implicitly set to undef.
>
> Ciao,
>
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list