mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Merge the collected attributes into the call instruction's attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7fdee493b
commit
f54676234a
@ -102,7 +102,7 @@ bool LLParser::ValidateEndOfModule() {
|
||||
AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex);
|
||||
AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex,
|
||||
AS.getFnAttributes());
|
||||
|
||||
FnAttrs.merge(B);
|
||||
AS = AS.addAttributes(Context, AttributeSet::FunctionIndex,
|
||||
AttributeSet::get(Context,
|
||||
AttributeSet::FunctionIndex,
|
||||
@ -113,7 +113,7 @@ bool LLParser::ValidateEndOfModule() {
|
||||
AttrBuilder FnAttrs(AS.getFnAttributes(), AttributeSet::FunctionIndex);
|
||||
AS = AS.removeAttributes(Context, AttributeSet::FunctionIndex,
|
||||
AS.getFnAttributes());
|
||||
|
||||
FnAttrs.merge(B);
|
||||
AS = AS.addAttributes(Context, AttributeSet::FunctionIndex,
|
||||
AttributeSet::get(Context,
|
||||
AttributeSet::FunctionIndex,
|
||||
|
Loading…
Reference in New Issue
Block a user