We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419863e commit aa4acdeCopy full SHA for aa4acde
clang/lib/AST/Expr.cpp
@@ -2248,7 +2248,8 @@ bool BinaryOperator::isNullPointerArithmeticExtension(ASTContext &Ctx,
2248
}
2249
2250
// Workaround for old glibc's __PTR_ALIGN macro
2251
- if (auto *Select = dyn_cast<ConditionalOperator>(PExp->IgnoreParenCasts())) {
+ if (auto *Select =
2252
+ dyn_cast<ConditionalOperator>(PExp->IgnoreParenNoopCasts(Ctx))) {
2253
// If the condition can be constant evaluated, we check the selected arm.
2254
bool EvalResult;
2255
if (!Select->getCond()->EvaluateAsBooleanCondition(EvalResult, Ctx))
0 commit comments