diff --git a/clang/lib/AST/Reflection.cpp b/clang/lib/AST/Reflection.cpp index c55f1b6bb1581d..6a077d0b32e60d 100644 --- a/clang/lib/AST/Reflection.cpp +++ b/clang/lib/AST/Reflection.cpp @@ -17,7 +17,7 @@ namespace clang { bool TagDataMemberSpec::operator==(TagDataMemberSpec const &Rhs) const { - return (Ty == Ty && + return (Ty == Rhs.Ty && Alignment == Rhs.Alignment && BitWidth == Rhs.BitWidth && Name == Rhs.Name);