OpaquePtr: Record byref types in bitcode writer

I missed this case when adding byref. I believe this is NFC until
pointee types are really removed.
This commit is contained in:
Matt Arsenault 2021-03-07 09:56:45 -05:00
parent e867951de6
commit c79a4490d4
1 changed files with 2 additions and 0 deletions

View File

@ -1005,6 +1005,8 @@ void ValueEnumerator::incorporateFunction(const Function &F) {
EnumerateType(I.getParamByValType());
else if (I.hasAttribute(Attribute::StructRet))
EnumerateType(I.getParamStructRetType());
else if (I.hasAttribute(Attribute::ByRef))
EnumerateType(I.getParamByRefType());
}
FirstFuncConstantID = Values.size();