-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[Clang][NFC] Fix a warning in TransformNestedRequirement #164148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The logical or expression should be parenthesized. Fixes llvm#164104
@llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) ChangesThe logical or expression should be parenthesized. Fixes #164104 Full diff: https://github.com/llvm/llvm-project/pull/164148.diff 1 Files Affected:
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index ca7e3b264cec4..038f39633760d 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -2864,9 +2864,9 @@ TemplateInstantiator::TransformNestedRequirement(
TemplateArgs, Constraint->getSourceRange(), Satisfaction,
/*TopLevelConceptId=*/nullptr, &NewConstraint);
- assert(!Success || !Trap.hasErrorOccurred() &&
- "Substitution failures must be handled "
- "by CheckConstraintSatisfaction.");
+ assert((!Success || !Trap.hasErrorOccurred()) &&
+ "Substitution failures must be handled "
+ "by CheckConstraintSatisfaction.");
}
if (!Success || Satisfaction.HasSubstitutionFailure())
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/22066 Here is the relevant piece of the build log for the reference
|
assert(!Success || !Trap.hasErrorOccurred() && | ||
"Substitution failures must be handled " | ||
"by CheckConstraintSatisfaction."); | ||
assert((!Success || !Trap.hasErrorOccurred()) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is really cursed syntax highlighting there.
Thank you for the fix. |
The logical or expression should be parenthesized.
Fixes #164104