diff --git a/llvm/include/Support/TypeInfo.h b/llvm/include/Support/TypeInfo.h index 5d9035076f33..e23f906afa7f 100644 --- a/llvm/include/Support/TypeInfo.h +++ b/llvm/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();