[mips] Define getTargetNode as a template function.
[oota-llvm.git] / lib / Target / Mips / Mips16ISelLowering.cpp
index c8d0a520eb8f7ece748af5fb995f4d756e215f18..89f3d3ba175cf615f6e7bc2e6e56d800c9d26e7a 100644 (file)
@@ -474,7 +474,9 @@ getOpndList(SmallVectorImpl<SDValue> &Ops,
     if (NeedMips16Helper) {
       RegsToPass.push_front(std::make_pair(V0Reg, Callee));
       JumpTarget = DAG.getExternalSymbol(Mips16HelperFunction, getPointerTy());
-      JumpTarget = getAddrGlobal(JumpTarget, DAG, MipsII::MO_GOT);
+      JumpTarget = getAddrGlobal(cast<ExternalSymbolSDNode>(JumpTarget),
+                                 JumpTarget.getValueType(), DAG,
+                                 MipsII::MO_GOT);
     } else
       RegsToPass.push_front(std::make_pair((unsigned)Mips::T9, Callee));
   }