mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Query for attributes via the correct method call.
llvm-svn: 165206
This commit is contained in:
parent
3535cd36c8
commit
8516e5da4e
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user