Author: Richard Smith
Date: 2022-06-29T13:08:40-07:00
New Revision: 5086e05bb0cdeef68b110336dba2fe229be95110

URL: 
https://github.com/llvm/llvm-project/commit/5086e05bb0cdeef68b110336dba2fe229be95110
DIFF: 
https://github.com/llvm/llvm-project/commit/5086e05bb0cdeef68b110336dba2fe229be95110.diff

LOG: Repair tautological condition.

Fixes #49725.

Added: 
    

Modified: 
    clang/include/clang/APINotes/Types.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/APINotes/Types.h 
b/clang/include/clang/APINotes/Types.h
index d5372902ee095..d795869319950 100644
--- a/clang/include/clang/APINotes/Types.h
+++ b/clang/include/clang/APINotes/Types.h
@@ -671,7 +671,7 @@ class TagInfo : public CommonTypeInfo {
   TagInfo &operator|=(const TagInfo &RHS) {
     static_cast<CommonTypeInfo &>(*this) |= RHS;
 
-    if (!HasFlagEnum && HasFlagEnum)
+    if (!HasFlagEnum)
       setFlagEnum(RHS.isFlagEnum());
 
     if (!EnumExtensibility)


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to