From a6db70b049ded3704a2e3cd190733f5abd3cdd82 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. llvm-svn: 144164 --- llvm/tools/llvm-diff/DiffConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-diff/DiffConsumer.cpp') diff --git a/llvm/tools/llvm-diff/DiffConsumer.cpp b/llvm/tools/llvm-diff/DiffConsumer.cpp index 24b372d0229..d9e181470e0 100644 --- a/llvm/tools/llvm-diff/DiffConsumer.cpp +++ b/llvm/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