Fix a *really* dumb warning on VC
authorChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 20:47:19 +0000 (20:47 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 20:47:19 +0000 (20:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14025 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/TypeInfo.h
include/llvm/Support/TypeInfo.h

index 5d9035076f3353842d3c56b2dacc8a49b14e5df8..e23f906afa7fbc06048658edf976ee643e1d2621 100644 (file)
@@ -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();
index 5d9035076f3353842d3c56b2dacc8a49b14e5df8..e23f906afa7fbc06048658edf976ee643e1d2621 100644 (file)
@@ -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();