aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-04 20:47:19 +0000
committerChris Lattner <sabre@nondot.org>2004-06-04 20:47:19 +0000
commit775b08d9e83b6b685fc9d14031579bb73b036ce9 (patch)
tree8d83dd9040e0edbc539cb527453ffce558df289f
parent43714d11ea98b637967472640bf13532de076e48 (diff)
Fix a *really* dumb warning on VC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14025 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/Support/TypeInfo.h2
-rw-r--r--include/llvm/Support/TypeInfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Support/TypeInfo.h b/include/Support/TypeInfo.h
index 5d9035076f..e23f906afa 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 5d9035076f..e23f906afa 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();