mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
make sure to propagate operand flags in SelectTLSADDRAddr properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
505e982040
commit
ba8ef45d12
@ -1313,7 +1313,8 @@ bool X86DAGToDAGISel::SelectTLSADDRAddr(SDValue Op, SDValue N, SDValue &Base,
|
||||
AM.GV = GA->getGlobal();
|
||||
AM.Disp += GA->getOffset();
|
||||
AM.Base.Reg = CurDAG->getRegister(0, N.getValueType());
|
||||
|
||||
AM.SymbolFlags = GA->getTargetFlags();
|
||||
|
||||
if (N.getValueType() == MVT::i32) {
|
||||
AM.Scale = 1;
|
||||
AM.IndexReg = CurDAG->getRegister(X86::EBX, MVT::i32);
|
||||
|
Loading…
x
Reference in New Issue
Block a user