[all-commits] [llvm/llvm-project] 3b150f: [clang][bytecode] Handle negative array sizes in c...
Samarth Narang via All-commits
all-commits at lists.llvm.org
Fri Aug 29 05:29:02 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3b150fb12839f6b34136a9a36369973adb89d634
https://github.com/llvm/llvm-project/commit/3b150fb12839f6b34136a9a36369973adb89d634
Author: Samarth Narang <70980689+snarang181 at users.noreply.github.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M clang/lib/AST/ByteCode/Interp.h
M clang/test/AST/ByteCode/new-delete.cpp
Log Message:
-----------
[clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (#155737)
This patch fixes a crash in the constexpr interpreter when evaluating
`new T[n]` with a negative element count.
Fixes https://github.com/llvm/llvm-project/issues/152904
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list