From: John McCall Date: Wed, 9 Nov 2011 03:26:50 +0000 (+0000) Subject: Use isa<> instead of dyn_cast<> as suggested by Nick. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd22883a345b2e04d0bdb4d4b9ed64ceebdc0601;p=oota-llvm.git Use isa<> instead of dyn_cast<> as suggested by Nick. 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 --- diff --git a/tools/llvm-diff/DiffConsumer.cpp b/tools/llvm-diff/DiffConsumer.cpp index 24b372d0229..d9e181470e0 100644 --- a/tools/llvm-diff/DiffConsumer.cpp +++ b/tools/llvm-diff/DiffConsumer.cpp @@ -64,7 +64,7 @@ void DiffConsumer::printValue(Value *V, bool isL) { } return; } - if (dyn_cast(V)) { + if (isa(V)) { out << *V; return; }