diff options
author | John McCall <rjmccall@apple.com> | 2011-11-09 03:26:50 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-11-09 03:26:50 +0000 |
commit | fd22883a345b2e04d0bdb4d4b9ed64ceebdc0601 (patch) | |
tree | 64d2a60b65c47a7c72f488add51faf5597782ab7 /tools/llvm-diff | |
parent | 2f2fe417f98406140504ba3bbb65676d4a00ed87 (diff) |
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
Diffstat (limited to 'tools/llvm-diff')
-rw-r--r-- | tools/llvm-diff/DiffConsumer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Constant>(V)) { + if (isa<Constant>(V)) { out << *V; return; } |