[llvm] r364357 - Dump what value failed byval attribute verification

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 15:33:33 PDT 2019


Author: rnk
Date: Tue Jun 25 15:33:32 2019
New Revision: 364357

URL: http://llvm.org/viewvc/llvm-project?rev=364357&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/IR/Verifier.cpp

Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=364357&r1=364356&r2=364357&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Jun 25 15:33:32 2019
@@ -1666,7 +1666,7 @@ void Verifier::verifyParameterAttrs(Attr
 
   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);




More information about the llvm-commits mailing list