[PATCH] [DOC] LangRef: Clarify when index of temporaries begin at 0

Mikael Lyngvig mikael at lyngvig.org
Tue Nov 26 17:50:34 PST 2013


This patch adds the following sentence to the LR after it states that
temporaries begin at index 0:

   If you do not specify a label for the entry block, the temporaries start
at index 1 as index
   0 is then used for an implicit label generated by LLVM.

This because LLC complains when you use %0 as a temporary and there is no
entry point label in the function.  Then you get an error message, which
can be quite difficult to figure out why.

If this patch is rejected, somebody should probably phrase the above
appropriately and submit a new patch.


-- Mikael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131127/63aea3ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: label1.patch
Type: application/octet-stream
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131127/63aea3ab/attachment.obj>


More information about the llvm-commits mailing list