Timm Baeder
1828381ed2
[clang][bytecode] Fix APValue generation for RValueReferenceType ( #147207 )
...
We need to ignore the lvalue path, just like we do for lvalue reference
types.
2025-07-06 21:12:18 +02:00
Timm Baeder
9c7320e5d3
[clang][bytecode] Fix visiting for-range loop variable ( #147188 )
...
Make sure we're properly registering DecompositionDecls.
2025-07-06 18:59:24 +02:00
Timm Baeder
98ea512f72
[clang][bytecode] Clear inactive union fields when copying ( #134982 )
...
When copying unions, we need to only copy the active field of the source
union, which we were already doing. However, we also need to zero out
the (now) inactive fields, so we don't end up with dangling pointers in
those inactive fields.
2025-04-10 06:12:00 +02:00
Timm Baeder
cf6a520a7a
[clang][bytecode] Fix builtin_memcmp buffer sizes for pointers ( #130570 )
...
Don't use the pointer size, but the number of elements multiplied by the
element size.
2025-03-10 15:51:31 +01:00
Timm Baeder
3dafa486a6
[clang][bytecode] Don't narrow() when dereferencing to array type ( #129524 )
...
It doesn't make sense to do this if the result is supposed to be an
array.
2025-03-03 17:14:54 +01:00
Timm Baeder
3f648992bf
[clang][bytecode] Fix initing incomplete arrays from ImplicitValueIni… ( #128729 )
...
…tExpr
If the ImplicitValueInitExpr is of incomplete array type, we ignore it
in its Visit function. This is a special case here, so pull out the
element type and zero the elements.
2025-02-26 08:14:00 +01:00
Timm Baeder
dfa3af9255
[clang][bytecode] Expand subscript base if of pointer type ( #128511 )
...
This is similar to what we do in the AddOffset instruction when adding
an offset to a pointer.
2025-02-25 11:40:05 +01:00
Timm Bäder
ad3f7d2c71
[clang][bytecode][test] Qualify a std::move call
...
Try to fix the test failures introduced by 97ed2019c41f2c0208699ab3593b681487754d58
See https://github.com/llvm/llvm-project/pull/128141
2025-02-21 09:57:16 +01:00
Timm Baeder
97ed2019c4
[clang][bytecode] Use ExtendingDecl mechanism for primitives as well ( #128141 )
...
... when creating the temporary variables for a
MaterializeTemporaryExpr.
2025-02-21 09:47:08 +01:00
Timm Baeder
f09fd94d6b
[clang][bytecode] Restructure Program::CurrentDeclaration handling ( #127456 )
...
Properly reset to the last ID and return the current ID from
getCurrentDecl().
2025-02-17 11:24:43 +01:00
Timm Baeder
f1627e1a9e
[clang][bytecode][NFC] Move reduced libcxx tests to a subdir ( #127438 )
2025-02-17 07:02:54 +01:00