[clang] 5086e05 - Repair tautological condition.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 29 13:08:49 PDT 2022
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)
More information about the cfe-commits
mailing list