From 3927f044ef24e63ee9da1dba8435ee4bd33b55b9 Mon Sep 17 00:00:00 2001 From: Umberto Raimondi Date: Thu, 3 Oct 2019 14:10:59 +0200 Subject: [PATCH] Update assert on SymbolicValue size 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. --- include/swift/SIL/SILConstants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/swift/SIL/SILConstants.h b/include/swift/SIL/SILConstants.h index a3b7909a4e00e..1de41b8805856 100644 --- a/include/swift/SIL/SILConstants.h +++ b/include/swift/SIL/SILConstants.h @@ -556,7 +556,7 @@ class SymbolicValue { void dump() const; }; -static_assert(sizeof(SymbolicValue) == 2 * sizeof(void *), +static_assert(sizeof(SymbolicValue) == 2 * sizeof(uint64_t), "SymbolicValue should stay small"); static_assert(std::is_pod::value, "SymbolicValue should stay POD");