summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-diff/DiffConsumer.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-11-09 03:26:50 +0000
committerJohn McCall <rjmccall@apple.com>2011-11-09 03:26:50 +0000
commita6db70b049ded3704a2e3cd190733f5abd3cdd82 (patch)
treea4562fe7d22b07c10f5e747553ca23e582227402 /llvm/tools/llvm-diff/DiffConsumer.cpp
parent595d419427875814074817d8fcc4576690769078 (diff)
downloadbcm5719-llvm-a6db70b049ded3704a2e3cd190733f5abd3cdd82.tar.gz
bcm5719-llvm-a6db70b049ded3704a2e3cd190733f5abd3cdd82.zip
Use isa<> instead of dyn_cast<> as suggested by Nick.
Should've read the patch a bit closer, sorry. llvm-svn: 144164
Diffstat (limited to 'llvm/tools/llvm-diff/DiffConsumer.cpp')
-rw-r--r--llvm/tools/llvm-diff/DiffConsumer.cpp2
1 files changed, 1 insertions, 1 deletions
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<Constant>(V)) {
+ if (isa<Constant>(V)) {
out << *V;
return;
}
OpenPOWER on IntegriCloud