Skip to content

Commit 4efde7b

Browse files
committed
[BoundsSafety] Mark LVBase change to upstream
1 parent 92e2fd6 commit 4efde7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/include/clang/AST/APValue.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ class APValue {
419419
};
420420
struct MemberPointerData;
421421

422+
/* TO_UPSTREAM(BoundsSafety) ON */
422423
struct LVBase {
423424
APValue::LValueBase Base;
424425
CharUnits Offset;
@@ -449,11 +450,14 @@ class APValue {
449450
LVBase Base;
450451
LValuePathEntry Path[1];
451452
};
453+
/* TO_UPSTREAM(BoundsSafety) OFF */
452454

453455
// We ensure elsewhere that Data is big enough for LV and MemberPointerData.
454456
typedef llvm::AlignedCharArrayUnion<void *, APSInt, APFloat, ComplexAPSInt,
455457
ComplexAPFloat, Vec, Arr, StructData,
456-
UnionData, AddrLabelDiffData, LVPlaceHolder> DataType;
458+
UnionData, AddrLabelDiffData,
459+
// TO_UPSTREAM(BoundsSafety)
460+
LVPlaceHolder> DataType;
457461
static const size_t DataSize = sizeof(DataType);
458462

459463
DataType Data;

0 commit comments

Comments
 (0)