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();