[clang] [Clang] Fix crash in __builtin_assume_aligned (PR #114217)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 13:56:02 PDT 2024
================
@@ -5272,8 +5272,11 @@ bool Sema::BuiltinAssumeAligned(CallExpr *TheCall) {
{
ExprResult FirstArgResult =
DefaultFunctionArrayLvalueConversion(FirstArg);
- if (checkBuiltinArgument(*this, TheCall, 0))
----------------
efriedma-quic wrote:
checkBuiltinArgument should always either produce an expression with the correct type, or error out. If neither is happening, there's something wrong with type-checking.
https://github.com/llvm/llvm-project/pull/114217
More information about the cfe-commits
mailing list