mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: swift_getFunctionTypeMetadata is ReadOnly
It only accesses the type arguments passed indirectly via an array
This commit is contained in:
@@ -746,7 +746,7 @@ FUNCTION(GetFunctionMetadata, swift_getFunctionTypeMetadata, C_CC,
|
||||
TypeMetadataPtrTy->getPointerTo(0),
|
||||
Int32Ty->getPointerTo(0),
|
||||
TypeMetadataPtrTy),
|
||||
ATTRS(NoUnwind))
|
||||
ATTRS(NoUnwind, ReadOnly))
|
||||
|
||||
// Metadata *swift_getFunctionTypeMetadata0(unsigned long flags,
|
||||
// const Metadata *resultMetadata);
|
||||
|
||||
Reference in New Issue
Block a user