mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Query for attributes via the correct method call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f00ae6a3f
commit
9158eecd42
@ -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…
x
Reference in New Issue
Block a user