aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Casting.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Casting.h')
-rw-r--r--include/llvm/Support/Casting.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/Casting.h b/include/llvm/Support/Casting.h
index c441626216..48988f8a6b 100644
--- a/include/llvm/Support/Casting.h
+++ b/include/llvm/Support/Casting.h
@@ -98,7 +98,7 @@ template<class FromCl>
struct isa_impl_cl<FromCl*> {
template<class ToCl>
static bool isa(FromCl *Val) {
- return (Val != 0 && isa_impl_cl<FromCl>::template isa<ToCl>(*Val));
+ return isa_impl_cl<FromCl>::template isa<ToCl>(*Val);
}
};