IRGen: swift_getFunctionTypeMetadata is ReadOnly

It only accesses the type arguments passed indirectly via an array
This commit is contained in:
Arnold Schwaighofer
2018-01-31 08:05:27 -08:00
parent 6108c881be
commit aa76808b48

View File

@@ -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);