From: Chris Lattner Date: Fri, 4 Jun 2004 20:47:19 +0000 (+0000) Subject: Fix a *really* dumb warning on VC X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=775b08d9e83b6b685fc9d14031579bb73b036ce9;p=oota-llvm.git Fix a *really* dumb warning on VC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14025 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/TypeInfo.h b/include/Support/TypeInfo.h index 5d9035076f3..e23f906afa7 100644 --- a/include/Support/TypeInfo.h +++ b/include/Support/TypeInfo.h @@ -36,7 +36,7 @@ struct TypeInfo { // Compatibility functions bool before(const TypeInfo &rhs) const { - return Info->before(*rhs.Info); + return Info->before(*rhs.Info) != 0; } const char *getClassName() const { return Info->name(); diff --git a/include/llvm/Support/TypeInfo.h b/include/llvm/Support/TypeInfo.h index 5d9035076f3..e23f906afa7 100644 --- a/include/llvm/Support/TypeInfo.h +++ b/include/llvm/Support/TypeInfo.h @@ -36,7 +36,7 @@ struct TypeInfo { // Compatibility functions bool before(const TypeInfo &rhs) const { - return Info->before(*rhs.Info); + return Info->before(*rhs.Info) != 0; } const char *getClassName() const { return Info->name();