[PATCH] Fix check for noalias function

Tobias Güntner guentner at rbg.informatik.tu-darmstadt.de
Thu Apr 10 14:10:02 PDT 2014


Hi!

isNoAliasFn returns 'false' for the call instruction in this example:

declare noalias i8* @test()
define void @foo() {
   call i8* @test()
   ret void
}

isNoAliasFn checks if the function has a noalias attribute. I suppose it 
should check the return value instead. I've attached a patch.

Regards,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-noalias-check.patch
Type: text/x-patch
Size: 1742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140410/94231fdc/attachment.bin>


More information about the llvm-commits mailing list