diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2013-07-14 15:11:00 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2013-07-14 15:11:00 +0000 |
| commit | fee796d734ccd6cfb18b4b6a96c1f9dbda3e2d59 (patch) | |
| tree | 4e353660e9c494e93adf676d747fba82059a2f1b /llvm/lib/Target | |
| parent | ba310c4bdeaae1f71eacbb0dd2c5026cc151bf73 (diff) | |
| download | bcm5719-llvm-fee796d734ccd6cfb18b4b6a96c1f9dbda3e2d59.tar.gz bcm5719-llvm-fee796d734ccd6cfb18b4b6a96c1f9dbda3e2d59.zip | |
Properly lower jump tables on MSP430. Patch by Job Noorman!
llvm-svn: 186283
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp index b144164ad6f..682eb2c7e69 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -987,8 +987,8 @@ SDValue MSP430TargetLowering::LowerJumpTable(SDValue Op, SelectionDAG &DAG) const { JumpTableSDNode *JT = cast<JumpTableSDNode>(Op); SDValue Result = DAG.getTargetJumpTable(JT->getIndex(), getPointerTy()); - Result.getNode()->setDebugLoc(JT->getDebugLoc()); - return Result; + return DAG.getNode(MSP430ISD::Wrapper, SDLoc(JT), + getPointerTy(), Result); } /// getPostIndexedAddressParts - returns true by value, base pointer and |

