[clang] [Clang][CodeGen] Add workaround for old glibc `__PTR_ALIGN` macro (PR #137851)
Yingwei Zheng via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 00:27:01 PDT 2025
================
@@ -4820,6 +4820,9 @@ bool CodeGenFunction::isUnderlyingBasePointerConstantNull(const Expr *E) {
const Expr *UnderlyingBaseExpr = E->IgnoreParens();
while (auto *BaseMemberExpr = dyn_cast<MemberExpr>(UnderlyingBaseExpr))
UnderlyingBaseExpr = BaseMemberExpr->getBase()->IgnoreParens();
+ if (auto *Select = dyn_cast<ConditionalOperator>(UnderlyingBaseExpr))
----------------
dtcxzyw wrote:
Done.
https://github.com/llvm/llvm-project/pull/137851
More information about the cfe-commits
mailing list