projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d914a
)
I got the predicate backwards in my last patch. The comment is correct, the code...
author
Owen Anderson
<resistor@mac.com>
Mon, 18 Feb 2008 09:22:21 +0000
(09:22 +0000)
committer
Owen Anderson
<resistor@mac.com>
Mon, 18 Feb 2008 09:22:21 +0000
(09:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47264
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Function.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Function.cpp
b/lib/VMCore/Function.cpp
index e7a7041d778ffff6ceb3cbdc3d78b060b39e9e4f..ec34abc10671cbc54e14e22b3a2a13cd40c6d45e 100644
(file)
--- 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<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);
}