[LLVMdev] Instruction ctor: insertBefore

Reid Spencer reid at x10sys.com
Thu Jun 24 04:37:01 PDT 2004


Vladimir,

Instructions are members of a linked list. Consequently if you insert
some Instruction, that instruction gets changed. So, its not const.

Simple enough?

Reid.

On Thu, 2004-06-24 at 01:02, Vladimir Prus wrote:
> Hi,
> the insertBefore parameter, present in all constructors, is declared like 
> this:
> 
>     Instruction *InsertBefore=0
> 
> any reason there's no "const" before "Instruction"
> 
> ?
> 
> - Volodya
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040624/b199d79c/attachment.sig>


More information about the llvm-dev mailing list