Skip to content

Commit 879591a

Browse files
committed
fixup! fixup! fixup! [X86] Insert CALLSEQ when lowering GlobalTLSAddress for ELF targets
Define operand arrays inline in getNode calls. Committed this way because the github UI kept requesting refreshes when trying to commit Matt's suggested changes.
1 parent 79abe3e commit 879591a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18878,11 +18878,9 @@ static SDValue GetTLSADDR(SelectionDAG &DAG, SDValue Chain,
1887818878
DAG.getNode(X86ISD::GlobalBaseReg, dl, PtrVT),
1887918879
InGlue);
1888018880
InGlue = Chain.getValue(1);
18881-
SDValue Ops[] = {Chain, TGA, InGlue};
18882-
Chain = DAG.getNode(CallType, dl, NodeTys, Ops);
18881+
Chain = DAG.getNode(CallType, dl, NodeTys, {Chain, TGA, InGlue});
1888318882
} else {
18884-
SDValue Ops[] = {Chain, TGA};
18885-
Chain = DAG.getNode(CallType, dl, NodeTys, Ops);
18883+
Chain = DAG.getNode(CallType, dl, NodeTys, {Chain, TGA});
1888618884
}
1888718885
Chain = DAG.getCALLSEQ_END(Chain, 0, 0, Chain.getValue(1), dl);
1888818886

0 commit comments

Comments
 (0)