From fd22883a345b2e04d0bdb4d4b9ed64ceebdc0601 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 9 Nov 2011 03:26:50 +0000 Subject: 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 --- tools/llvm-diff/DiffConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/llvm-diff') diff --git a/tools/llvm-diff/DiffConsumer.cpp b/tools/llvm-diff/DiffConsumer.cpp index 24b372d022..d9e181470e 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; } -- cgit v1.2.3