diff options
| author | Owen Anderson <resistor@mac.com> | 2008-02-18 09:22:21 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-02-18 09:22:21 +0000 |
| commit | a54570d2d2797a7a8ab33a96592232a95416eccc (patch) | |
| tree | 8911488c7a363f436af85f751850d7b5e468105f /llvm | |
| parent | bdf7ed9495a15ebb8a9091392d3a779ec3339a20 (diff) | |
| download | bcm5719-llvm-a54570d2d2797a7a8ab33a96592232a95416eccc.tar.gz bcm5719-llvm-a54570d2d2797a7a8ab33a96592232a95416eccc.zip | |
I got the predicate backwards in my last patch. The comment is correct, the code was not.
llvm-svn: 47264
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index e7a7041d778..ec34abc1067 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -107,7 +107,7 @@ bool Argument::hasNoAliasAttr() const { /// it in its containing function. bool Argument::hasStructRetAttr() const { if (!isa<PointerType>(getType())) return false; - if (getArgNo()) return false; // StructRet param must be first param + if (this != getParent()->arg_begin()) return false; // StructRet param must be first param return getParent()->paramHasAttr(1, ParamAttr::StructRet); } |

