summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-26 21:18:37 +0000
committerChris Lattner <sabre@nondot.org>2009-06-26 21:18:37 +0000
commit899abc46551f669d72ef7a40a1c33bd73f55c6d8 (patch)
tree50026f8f10444856f49bf9ad343ff4a00596594b /llvm/lib/Target
parentbc60c14c9743da1dae32471e3c18b80a949cc6cf (diff)
downloadbcm5719-llvm-899abc46551f669d72ef7a40a1c33bd73f55c6d8.tar.gz
bcm5719-llvm-899abc46551f669d72ef7a40a1c33bd73f55c6d8.zip
make sure to propagate operand flags in SelectTLSADDRAddr properly.
llvm-svn: 74326
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index 0203353ec4b..2efe3a2ba7b 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -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);
OpenPOWER on IntegriCloud