mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: Add code for recursive type layout based witness generation
This adds code that can be used to build recursive type layouts. And code that generates value witness IR based on the recursive type layouts. Value witnesses generated based on type layouts will only refer to archetypes when computing fields offsets for frozen generic types (vs instantiated type medata). rdar://51988441
This commit is contained in:
@@ -972,7 +972,7 @@ llvm::AttributeList IRGenModule::constructInitialAttributes() {
|
||||
llvm::AttributeList::FunctionIndex, b);
|
||||
}
|
||||
|
||||
llvm::Constant *IRGenModule::getInt32(uint32_t value) {
|
||||
llvm::ConstantInt *IRGenModule::getInt32(uint32_t value) {
|
||||
return llvm::ConstantInt::get(Int32Ty, value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user