[LLVMdev] How to assign undef value to a variable

Duncan Sands baldrick at free.fr
Mon Jun 28 00:04:18 PDT 2010


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.



More information about the llvm-dev mailing list