mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165960 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -314,8 +314,8 @@ bool llvm::isInTailCallPosition(ImmutableCallSite CS, Attributes CalleeRetAttr,
|
||||
// the return. Ignore noalias because it doesn't affect the call sequence.
|
||||
const Function *F = ExitBB->getParent();
|
||||
Attributes CallerRetAttr = F->getAttributes().getRetAttributes();
|
||||
if (Attributes::Builder(CalleeRetAttr).removeAttribute(Attributes::NoAlias) !=
|
||||
Attributes::Builder(CallerRetAttr).removeAttribute(Attributes::NoAlias))
|
||||
if (AttrBuilder(CalleeRetAttr).removeAttribute(Attributes::NoAlias) !=
|
||||
AttrBuilder(CallerRetAttr).removeAttribute(Attributes::NoAlias))
|
||||
return false;
|
||||
|
||||
// It's not safe to eliminate the sign / zero extension of the return value.
|
||||
@@ -356,7 +356,7 @@ bool llvm::isInTailCallPosition(SelectionDAG &DAG, SDNode *Node,
|
||||
// Conservatively require the attributes of the call to match those of
|
||||
// the return. Ignore noalias because it doesn't affect the call sequence.
|
||||
Attributes CallerRetAttr = F->getAttributes().getRetAttributes();
|
||||
if (Attributes::Builder(CallerRetAttr)
|
||||
if (AttrBuilder(CallerRetAttr)
|
||||
.removeAttribute(Attributes::NoAlias).hasAttributes())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user