From 7f2ade3bc4dab81fe79444fb3a65c55247d34609 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 25 Jun 2019 22:33:32 +0000 Subject: [PATCH] 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 --- lib/IR/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index a1b53272784..c3bc733bac1 100644 --- a/lib/IR/Verifier.cpp +++ b/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);