Use isa<> instead of dyn_cast<> as suggested by Nick.
authorJohn McCall <rjmccall@apple.com>
Wed, 9 Nov 2011 03:26:50 +0000 (03:26 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 9 Nov 2011 03:26:50 +0000 (03:26 +0000)
Should've read the patch a bit closer, sorry.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144164 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-diff/DiffConsumer.cpp

index 24b372d022909942bd83e5670517da723c8bce30..d9e181470e043c475471486d2afc9d20a015919e 100644 (file)
@@ -64,7 +64,7 @@ void DiffConsumer::printValue(Value *V, bool isL) {
     }
     return;
   }
-  if (dyn_cast<Constant>(V)) {
+  if (isa<Constant>(V)) {
     out << *V;
     return;
   }