[PATCH] [mips] Use isa<> instead of dyn_cast<> with unused value. NFC.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Fri Feb 13 08:57:48 PST 2015


Hi dsanders,

http://reviews.llvm.org/D7615

Files:
  lib/Target/Mips/MipsSEISelLowering.cpp

Index: lib/Target/Mips/MipsSEISelLowering.cpp
===================================================================
--- lib/Target/Mips/MipsSEISelLowering.cpp
+++ lib/Target/Mips/MipsSEISelLowering.cpp
@@ -2291,9 +2291,9 @@
 static bool isConstantOrUndef(const SDValue Op) {
   if (Op->getOpcode() == ISD::UNDEF)
     return true;
-  if (dyn_cast<ConstantSDNode>(Op))
+  if (isa<ConstantSDNode>(Op))
     return true;
-  if (dyn_cast<ConstantFPSDNode>(Op))
+  if (isa<ConstantFPSDNode>(Op))
     return true;
   return false;
 }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7615.19897.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150213/4c6cb382/attachment.bin>


More information about the llvm-commits mailing list