[LLVMdev] Re: calls to exit()

Chris Lattner sabre at nondot.org
Fri Nov 22 11:56:01 PST 2002


On Fri, 22 Nov 2002, lee white baugh wrote:
> do calls to exit() always have a null target-function pointer?  that is
> what i think i am seeing.

Currently, yes.  What's actually happening is that the call gets moved to
the "globals graph".  Essentially, this is due to the fact that the
function call cannot modify the local memory graph of the current
function.  In cases where the target pointer is null like this, you can
safely assume that the called function doesn't modify the current graph.

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/




More information about the llvm-dev mailing list