From: Owen Anderson Date: Mon, 18 Feb 2008 09:22:21 +0000 (+0000) Subject: I got the predicate backwards in my last patch. The comment is correct, the code... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=874a892c9969fbbe50a5017868c2f82923632b29;p=oota-llvm.git I got the predicate backwards in my last patch. The comment is correct, the code was not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47264 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index e7a7041d778..ec34abc1067 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -107,7 +107,7 @@ bool Argument::hasNoAliasAttr() const { /// it in its containing function. bool Argument::hasStructRetAttr() const { if (!isa(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); }