[LLVMdev] inserting a fucntion call at the end of basic bloc

Duncan Sands baldrick at free.fr
Tue Apr 26 04:42:44 PDT 2011

Hi Nabila,

> Now when i tried this pass an error says:
> Wrong type for attribute noalias
> tail call void @consume(i32 noalias 3, i32* @y) nounwind

noalias is only for arguments of pointer type.  You probably meant it to
be on the second argument rather than the first.  I suggest you correct
your code that adds the attribute.

Ciao, Duncan.

More information about the llvm-dev mailing list