[clang] [clang][AST] Assert that ConstantExpr type and APValue kind match (PR #230388)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 30 02:06:09 PDT 2026
================
@@ -6908,6 +6908,8 @@ bool Sema::BuiltinAssumeAligned(CallExpr *TheCall) {
Diag(TheCall->getBeginLoc(), diag::warn_assume_aligned_too_great)
<< SecondArg->getSourceRange() << Sema::MaximumAlignment;
+ SecondArg = DefaultLvalueConversion(SecondArg).get();
----------------
tbaederr wrote:
Isn't `DefaultLValueConversion` already the helper for this pattern? Or do you mean the additional `get()` call?
https://github.com/llvm/llvm-project/pull/230388
More information about the cfe-commits
mailing list