aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();