From c932bef114a2aa93b8dc865e18bb928a45edeff3 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 12 May 2005 16:55:34 +0000 Subject: [PATCH] Correct a detail with the alloca instruction. Functions do not exit with invoke; they exit with unwind. llvm-svn: 21893 --- llvm/docs/LangRef.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index f9b777617f23..df1ab479af2c 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -1837,7 +1837,7 @@ a shorter version of the first that defaults to allocating one element.

memory is automatically released when the function returns. The 'alloca' instruction is commonly used to represent automatic variables that must have an address available. When the function returns (either with the ret or invoke + href="#i_ret">ret or unwind instructions), the memory is reclaimed.

Example:
  %ptr = alloca int                              ; yields {int*}:ptr