diff options
author | Reid Kleckner <rnk@google.com> | 2019-06-25 22:33:32 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-06-25 22:33:32 +0000 |
commit | a3eeca333b4997bea8f380c038e6fcf9b0d5b018 (patch) | |
tree | 1a1acffeff40daf403140933c496131718d79a9f /llvm/lib/IR/Verifier.cpp | |
parent | 05d1a2bd1bf3c0172334bbdf21cdf97135ab2797 (diff) | |
download | bcm5719-llvm-a3eeca333b4997bea8f380c038e6fcf9b0d5b018.tar.gz bcm5719-llvm-a3eeca333b4997bea8f380c038e6fcf9b0d5b018.zip |
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
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<PointerType>(Ty)->getElementType(), - "Attribute 'byval' type does not match parameter!"); + "Attribute 'byval' type does not match parameter!", V); } AttrBuilder IncompatibleAttrs = AttributeFuncs::typeIncompatible(Ty); |