mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Properly flag opaque existential types as not being
bitwise-takable. Swift SVN r20803
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <cctype>
|
||||
#include <dispatch/dispatch.h>
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/Hashing.h"
|
||||
#include "ExistentialMetadataImpl.h"
|
||||
#include "Debug.h"
|
||||
@@ -1497,6 +1496,7 @@ getOpaqueExistentialValueWitnesses(unsigned numWitnessTables) {
|
||||
vwt->flags = ValueWitnessFlags()
|
||||
.withAlignment(Box::Container::getAlignment(numWitnessTables))
|
||||
.withPOD(false)
|
||||
.withBitwiseTakable(false)
|
||||
.withInlineStorage(false)
|
||||
.withExtraInhabitants(false);
|
||||
vwt->stride = Box::Container::getStride(numWitnessTables);
|
||||
@@ -1547,6 +1547,7 @@ getClassExistentialValueWitnesses(unsigned numWitnessTables) {
|
||||
vwt->flags = ValueWitnessFlags()
|
||||
.withAlignment(Box::Container::getAlignment(numWitnessTables))
|
||||
.withPOD(false)
|
||||
.withBitwiseTakable(true)
|
||||
.withInlineStorage(false)
|
||||
.withExtraInhabitants(true);
|
||||
vwt->stride = Box::Container::getStride(numWitnessTables);
|
||||
|
||||
Reference in New Issue
Block a user