forked from OSchip/llvm-project
Merge the collected attributes into the call instruction's attributes.
llvm-svn: 174955
This commit is contained in:
parent
7321fec934
commit
59dce37a82
|
@ -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