[LLVMdev] alloca & store generation
Andreas Eriksson
aeriksson at gmail.com
Tue Mar 6 03:48:15 PST 2007
> Why isn't llvm giving a name to the value returned by the allocas and
> using it in the store instructions?
Because you pass in an empty string for the name in the new AllocaInst
calls below. Replace the empty strings with "argc_addr" or whatever
you want.
> AllocaInst* argc_alloca = new AllocaInst(argc->getType(), "",
> insertNewInstsBefore);
> AllocaInst* argv_alloca = new AllocaInst(argv->getType(), "",
> insertNewInstsBefore);
More information about the llvm-dev
mailing list