From a3eeca333b4997bea8f380c038e6fcf9b0d5b018 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 25 Jun 2019 22:33:32 +0000 Subject: 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 --- llvm/lib/IR/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Verifier.cpp') diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index a1b53272784..c3bc733bac1 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -1666,7 +1666,7 @@ void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty, if (Attrs.hasAttribute(Attribute::ByVal) && Attrs.getByValType()) { Assert(Attrs.getByValType() == cast(Ty)->getElementType(), - "Attribute 'byval' type does not match parameter!"); + "Attribute 'byval' type does not match parameter!", V); } AttrBuilder IncompatibleAttrs = AttributeFuncs::typeIncompatible(Ty); -- cgit v1.2.3