[WebAssembly] Remove an unneeded static_cast.
authorDan Gohman <dan433584@gmail.com>
Tue, 8 Dec 2015 03:42:50 +0000 (03:42 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 8 Dec 2015 03:42:50 +0000 (03:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254998 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index 85fb753..4883d83 100644 (file)
@@ -593,8 +593,7 @@ SDValue WebAssemblyTargetLowering::LowerVASTART(SDValue Op,
   // the current frame pointer.
   DAG.getMachineFunction().getFrameInfo()->setFrameAddressIsTaken(true);
   unsigned FP =
   // the current frame pointer.
   DAG.getMachineFunction().getFrameInfo()->setFrameAddressIsTaken(true);
   unsigned FP =
-      static_cast<const WebAssemblyRegisterInfo *>(Subtarget->getRegisterInfo())
-          ->getFrameRegister(DAG.getMachineFunction());
+      Subtarget->getRegisterInfo()->getFrameRegister(DAG.getMachineFunction());
   SDValue FrameAddr = DAG.getCopyFromReg(DAG.getEntryNode(), DL, FP, PtrVT);
   const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
   return DAG.getStore(Op.getOperand(0), DL, FrameAddr, Op.getOperand(1),
   SDValue FrameAddr = DAG.getCopyFromReg(DAG.getEntryNode(), DL, FP, PtrVT);
   const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
   return DAG.getStore(Op.getOperand(0), DL, FrameAddr, Op.getOperand(1),