Skip to content

Commit 4055530

Browse files
uraimojrose-apple
authored andcommitted
Update assert on SymbolicValue size (#27515)
Since the storage is a multiple of uint64_t (derived by what LLVM's APInt does) we want to check for 2*uin64_t here, even on 32bit platforms.
1 parent 5d817d9 commit 4055530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class SymbolicValue {
556556
void dump() const;
557557
};
558558

559-
static_assert(sizeof(SymbolicValue) == 2 * sizeof(void *),
559+
static_assert(sizeof(SymbolicValue) == 2 * sizeof(uint64_t),
560560
"SymbolicValue should stay small");
561561
static_assert(std::is_pod<SymbolicValue>::value,
562562
"SymbolicValue should stay POD");

0 commit comments

Comments
 (0)