[llvm] r173902 - Attempt to fix dragonegg. Use the number of slots to determine if the AttributeSet has attributes or not.

Bill Wendling isanbard at gmail.com
Tue Jan 29 22:54:41 PST 2013


Author: void
Date: Wed Jan 30 00:54:41 2013
New Revision: 173902

URL: http://llvm.org/viewvc/llvm-project?rev=173902&view=rev
Log:
Attempt to fix dragonegg. Use the number of slots to determine if the AttributeSet has attributes or not.

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=173902&r1=173901&r2=173902&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Wed Jan 30 00:54:41 2013
@@ -797,7 +797,7 @@ void Verifier::VerifyFunctionAttrs(Funct
 }
 
 static bool VerifyAttributeCount(const AttributeSet &Attrs, unsigned Params) {
-  if (Attrs.isEmpty())
+  if (Attrs.getNumSlots() == 0)
     return true;
 
   unsigned LastSlot = Attrs.getNumSlots() - 1;





More information about the llvm-commits mailing list