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:
8f00ae6
)
Query for attributes via the correct method call.
author
Bill Wendling
<isanbard@gmail.com>
Thu, 4 Oct 2012 06:48:57 +0000
(06:48 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Thu, 4 Oct 2012 06:48:57 +0000
(06:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165206
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/DeadArgumentElimination.cpp
b/lib/Transforms/IPO/DeadArgumentElimination.cpp
index c7429c595460e7a7a7cd1b396f5467c1395c5226..13ff465c5378c1a9b777627d82395071434fc30e 100644
(file)
--- a/
lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/
lib/Transforms/IPO/DeadArgumentElimination.cpp
@@
-749,7
+749,7
@@
bool DAE::RemoveDeadStuffFromFunction(Function *F) {
}
}
- if (FnAttrs
!= Attribute::None
)
+ if (FnAttrs
.hasAttributes()
)
AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs));
// Reconstruct the AttributesList based on the vector we constructed.
@@
-811,7
+811,7
@@
bool DAE::RemoveDeadStuffFromFunction(Function *F) {
AttributesVec.push_back(AttributeWithIndex::get(Args.size(), Attrs));
}
- if (FnAttrs
!= Attribute::None
)
+ if (FnAttrs
.hasAttributes()
)
AttributesVec.push_back(AttributeWithIndex::get(~0, FnAttrs));
// Reconstruct the AttributesList based on the vector we constructed.