[llvm-commits] [llvm] r144164 - /llvm/trunk/tools/llvm-diff/DiffConsumer.cpp

John McCall rjmccall at apple.com
Tue Nov 8 19:26:50 PST 2011


Author: rjmccall
Date: Tue Nov  8 21:26:50 2011
New Revision: 144164

URL: http://llvm.org/viewvc/llvm-project?rev=144164&view=rev
Log:
Use isa<> instead of dyn_cast<> as suggested by Nick.
Should've read the patch a bit closer, sorry.


Modified:
    llvm/trunk/tools/llvm-diff/DiffConsumer.cpp

Modified: llvm/trunk/tools/llvm-diff/DiffConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-diff/DiffConsumer.cpp?rev=144164&r1=144163&r2=144164&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-diff/DiffConsumer.cpp (original)
+++ llvm/trunk/tools/llvm-diff/DiffConsumer.cpp Tue Nov  8 21:26:50 2011
@@ -64,7 +64,7 @@
     }
     return;
   }
-  if (dyn_cast<Constant>(V)) {
+  if (isa<Constant>(V)) {
     out << *V;
     return;
   }





More information about the llvm-commits mailing list