Skip to content

Commit aa4acde

Browse files
committed
[Clang][CodeGen] Address review comments.
1 parent 419863e commit aa4acde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/AST/Expr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,8 @@ bool BinaryOperator::isNullPointerArithmeticExtension(ASTContext &Ctx,
22482248
}
22492249

22502250
// Workaround for old glibc's __PTR_ALIGN macro
2251-
if (auto *Select = dyn_cast<ConditionalOperator>(PExp->IgnoreParenCasts())) {
2251+
if (auto *Select =
2252+
dyn_cast<ConditionalOperator>(PExp->IgnoreParenNoopCasts(Ctx))) {
22522253
// If the condition can be constant evaluated, we check the selected arm.
22532254
bool EvalResult;
22542255
if (!Select->getCond()->EvaluateAsBooleanCondition(EvalResult, Ctx))

0 commit comments

Comments
 (0)