[llvm-commits] [llvm] r47848 - in /llvm/trunk/lib/VMCore: Function.cpp Verifier.cpp
Devang Patel
dpatel at apple.com
Mon Mar 3 12:42:21 PST 2008
On Mar 3, 2008, at 11:39 AM, Chris Lattner wrote:
>
> On Mar 3, 2008, at 10:58 AM, Devang Patel wrote:
>
>> Author: dpatel
>> Date: Mon Mar 3 12:58:16 2008
>> New Revision: 47848
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=47848&view=rev
>> Log:
>> If a function uses multive values in ret instruction then it
>> is returning a struct value.
>
> Why do you want to do this? I think it would make sense to rename
> isStructReturn to hasStructRetAttribute() or something, but I don't
> think it makes sense to return true if the function returns multiple
> results. What does this fix?
I did this to preserve the semantics - does function return structure,
irrespective how return value is handled ?. If we want to keep this
predicate to check sret attr only then I'll rename this as
hasStructRetAttribute().
-
Devang
More information about the llvm-commits
mailing list