[PATCH] Fix check for noalias function

Tobias Güntner guentner at rbg.informatik.tu-darmstadt.de
Mon Apr 28 00:33:29 PDT 2014


Am 10.04.2014 23:10, schrieb Tobias Güntner:
> 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

ping





More information about the llvm-commits mailing list