Skip to content

Commit a3eeca3

Browse files
committed
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
1 parent 05d1a2b commit a3eeca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ void Verifier::verifyParameterAttrs(AttributeSet Attrs, Type *Ty,
16661666

16671667
if (Attrs.hasAttribute(Attribute::ByVal) && Attrs.getByValType()) {
16681668
Assert(Attrs.getByValType() == cast<PointerType>(Ty)->getElementType(),
1669-
"Attribute 'byval' type does not match parameter!");
1669+
"Attribute 'byval' type does not match parameter!", V);
16701670
}
16711671

16721672
AttrBuilder IncompatibleAttrs = AttributeFuncs::typeIncompatible(Ty);

0 commit comments

Comments
 (0)