[LLVMdev] Extracting all BasicBlocks of a Function into new Function
sabre at nondot.org
Thu Oct 5 13:51:06 CDT 2006
On Thu, 5 Oct 2006, Bram Adams wrote:
> Apparently, the problem is how to "rewind" the vararg-argument back to
> its first element when the second loop is reached, as it seems that the
> code just continues at position count and beyond, resulting in overflow.
> I'm not sure whether this code snippet is valid ANSI C, and if it is,
> one probably shouldn't use this approach, but I'm just curious to know
> how (and if) this problem could be solved.
Why not va_copy the input valist?
More information about the LLVMdev