[clang] [Clang] fix crash when constexpr evaluation encounters uninitialized GCC vector (PR #180293)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 13 10:00:09 PST 2026
================
@@ -3599,6 +3599,13 @@ static void expandArray(APValue &Array, unsigned Index) {
Array.swap(NewValue);
}
+// Expand an indeterminate vector to materialize all elements.
+static void expandVector(APValue &Vec, unsigned NumElements) {
+ assert(Vec.isIndeterminate());
----------------
Fznamznon wrote:
It was my suggestion to avoid misuse of the function. See https://github.com/llvm/llvm-project/pull/180293#discussion_r2781398250 .
https://github.com/llvm/llvm-project/pull/180293
More information about the cfe-commits
mailing list