Dump what value failed byval attribute verification

This verifier check is failing for us while doing ThinLTO on Chrome for
x86, see https://crbug.com/978218, and this helps to debug the problem.

llvm-svn: 364357
This commit is contained in:
Reid Kleckner 2019-06-25 22:33:32 +00:00
parent 965784c287
commit 7f2ade3bc4

View File

@ -1666,7 +1666,7 @@ void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty,
if (Attrs.hasAttribute(Attribute::ByVal) && Attrs.getByValType()) {
Assert(Attrs.getByValType() == cast<PointerType>(Ty)->getElementType(),
"Attribute 'byval' type does not match parameter!");
"Attribute 'byval' type does not match parameter!", V);
}
AttrBuilder IncompatibleAttrs = AttributeFuncs::typeIncompatible(Ty);