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

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Fri Feb 13 11:14:12 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7615

Files:
  llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp

Index: llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelLowering.cpp
+++ llvm/trunk/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.19908.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150213/7b5c094d/attachment.bin>


More information about the llvm-commits mailing list